From ec4d9d9999c9c0b4ef94bdcfb9ae9acc68316f6b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 09:46:40 -0400 Subject: [PATCH] grep for 'updated' in pull --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index a17d05e7..58cf89b4 100755 --- a/update +++ b/update @@ -38,7 +38,7 @@ if [ $FLAG -eq 1 ]; then echo "systemctl daemon-reload" sudo systemctl daemon-reload else - if [[ $(grep cat .updated) ]]; then + if [[ $(grep 'updated' /home/pi/CubeSatSim/.updated) ]]; then echo "systemctl restart cubesatsim" sudo systemctl restart cubesatsim fi