diff --git a/repo_watcher.sh b/repo_watcher.sh index faea7e1..85ac6a9 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -19,6 +19,8 @@ while true; do rsync -av --delete --exclude '.git/' ./ /DATA fi + cd repo + # Fetch the latest changes git fetch origin main @@ -28,9 +30,9 @@ while true; do BASE=$(git merge-base @ @{u}) if [ $LOCAL = $REMOTE ]; then - echo "Repository Up-to-date" + echo "Repository Up-to-Date" else - curl -d "$REPO_URL Automatically Pulled Update" $NTFY_URL + curl -d "$REPO_URL Automatically Pulling Updates..." $NTFY_URL echo "Pulling Updates from Repository..." git pull origin main rsync -av --delete --exclude '.git/' ./ /DATA