Update pacsat.sh copy existing PacSatSim file if present

master-b-q
Alan Johnston 1 week ago committed by GitHub
parent 0eecf68b47
commit 2c8ca5aca8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -127,10 +127,17 @@ else
wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGround.zip wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGround.zip
unzip PacSatGround.zip -d PacSatGround unzip PacSatGround.zip -d PacSatGround
sudo rm PacSatGround.zip sudo rm PacSatGround.zip
echo FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties
echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" if [ -f "$FILE" ]; then
sleep 10 FILE2=/home/pi/PacSatGround/spacecraft/PacSatSim.properties
sudo rm $FILE2
cp $FILE $FILE2
else
echo
echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign"
sleep 10
fi
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.