From 045e9189716801f33e956363bc61b7281cf61cc7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 09:35:01 -0400 Subject: [PATCH] use diff for changes to .service files --- update.sh => update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename update.sh => update (82%) diff --git a/update.sh b/update similarity index 82% rename from update.sh rename to update index 113feebc..2969cff7 100755 --- a/update.sh +++ b/update @@ -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