added ; null if file exists

dev
alanbjohnston 5 years ago committed by GitHub
parent 0f2ff9e038
commit b389142324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,6 +50,7 @@ fi
FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
;
else else
echo "Copying SSTV image 1" 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 cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg
@ -57,6 +58,7 @@ fi
FILE=/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg FILE=/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
;
else else
echo "Copying SSTV image 2" 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 cp /home/pi/CubeSatSim/sstv/sstv_image_2_320_x_256.jpg /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg

Loading…
Cancel
Save

Powered by TurnKey Linux.