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