rm only if needed

This commit is contained in:
Gwenhael Le Moine 2014-08-20 17:00:46 +02:00
parent bd895c482e
commit 99b83b70b8

View file

@ -301,7 +301,7 @@ EOF
echo ". . setup video output"
cp $BINARIES_DIR/cubie_configs/script-*.bin $DEST$TARGET/boot/
( cd $DEST$TARGET/boot/
rm script.bin
[ -e script.bin ] && rm script.bin
case $CUBIETRUCK_DISPLAY in
VGA) ln script-vga.bin script.bin
;;