From 9acc825ab8a0a0d806ac5dac9f55baecf4477152 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 09:45:09 -0400 Subject: [PATCH] grep for changes before reset --- update | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update b/update index 2969cff7..a17d05e7 100755 --- a/update +++ b/update @@ -38,6 +38,8 @@ if [ $FLAG -eq 1 ]; then echo "systemctl daemon-reload" sudo systemctl daemon-reload else - echo "systemctl restart cubesatsim" - sudo systemctl restart cubesatsim + if [[ $(grep cat .updated) ]]; then + echo "systemctl restart cubesatsim" + sudo systemctl restart cubesatsim + fi fi