From 8a98ee5f098b55488ba2b3dcd7b84aeea3cf5486 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 22 Sep 2023 02:27:55 -0600 Subject: [PATCH] Adjusted pull logic --- repo_watcher.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/repo_watcher.sh b/repo_watcher.sh index d104b6a..bc46797 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -32,13 +32,11 @@ while true; do if [ $LOCAL = $REMOTE ]; then echo "Repository Up-to-date" - elif [ $LOCAL = $BASE ]; then + else echo "Pulling Updates from Repository..." git pull origin main rsync -av --delete --exclude '.git/' ./ /DATA curl -d "$REPO_URL Automatically Pulled Update" $NTFY_URL - else - echo "Data Diverged - How exactly did this happen?" fi # Wait for 5 seconds before the next iteration