diff --git a/install b/install index 4389c707..af30f5e0 100755 --- a/install +++ b/install @@ -663,6 +663,12 @@ sudo usermod -a -G gpio pi sudo apt-get install default-jdk -y FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.commands +if [ ! -f "$FILE" ]; then + echo "copying missing commands file to spacecraft" + cp /home/pi/CubeSatSim/spacecraft/PacSatGround_0.46o/PacSatSim.commands $FILE +fi + +FILE=/home/pi/Desktop/PacsatGround/PacSatSim.commands if [ ! -f "$FILE" ]; then echo "copying missing commands file" cp /home/pi/CubeSatSim/spacecraft/PacSatGround_0.46o/PacSatSim.commands $FILE