From e49e95f200e43703e26e07d0210a07a70ecf41e0 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 10:13:16 -0400 Subject: [PATCH] added grep --- update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update b/update index a3c66f89..9d038fc5 100755 --- a/update +++ b/update @@ -38,10 +38,11 @@ if [ $FLAG -eq 1 ]; then echo "systemctl daemon-reload" sudo systemctl daemon-reload 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