From abe2c283d4fdc894aeeac9e5259220c5adb24445 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 10:12:11 -0400 Subject: [PATCH] swapped grep on changed --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 2efaa8e8..5f3bfbcf 100755 --- a/update.sh +++ b/update.sh @@ -40,9 +40,9 @@ if [ $FLAG -eq 1 ]; then else grep 'changed' /home/pi/CubeSatSim/.updated if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then - echo "nothing to do" - else echo "systemctl restart cubesatsim" sudo systemctl restart cubesatsim + else + echo "nothing to do" fi fi