added grep for changed to do restart

pull/111/head
alanbjohnston 5 years ago committed by GitHub
parent b6627101bc
commit 3727a2666a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,6 +38,10 @@ if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload"
sudo systemctl daemon-reload
else
echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
echo "nothing to do"
else
echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim
fi
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.