From b6627101bc7c34a875b96f9fee0c5a17e64ec8c8 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 10:04:05 -0400 Subject: [PATCH] changed grep to diff for .service files --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 113feebc..2969cff7 100755 --- a/update.sh +++ b/update.sh @@ -18,7 +18,7 @@ make debug FLAG=0 -if [[ $(grep 'cubesatsim.service' /home/pi/CubeSatSim/.updated) ]]; then +if [[ $(diff systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then echo "copying cubesatsim.service" sudo cp systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service FLAG=1 @@ -26,7 +26,7 @@ else echo "no changes to cubesatsim.service" fi -if [[ $(grep 'rpitx.service' /home/pi/CubeSatSim/.updated) ]]; then +if [[ $(diff systemd/rpitx.service /etc/systemd/system/rpitx.service) ]]; then echo "copying rpitx.service" sudo cp systemd/rpitx.service /etc/systemd/system/rpitx.service FLAG=1