diff --git a/update b/update index 2bb74e14..1e7a0d58 100755 --- a/update +++ b/update @@ -49,17 +49,13 @@ else fi FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg -if [ -f "$FILE" ]; then - ; -else +if [ ! -f "$FILE" ]; then echo "Copying SSTV image 1" cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg fi FILE=/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg -if [ -f "$FILE" ]; then - ; -else +if [ ! -f "$FILE" ]; then echo "Copying SSTV image 2" cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg fi