diff --git a/update.sh b/update.sh index 2969cff7..85b1f875 100755 --- a/update.sh +++ b/update.sh @@ -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