From bb82423afd4a89db105990a0ac26027abb893b73 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 22 Sep 2023 04:08:46 -0600 Subject: [PATCH] directory updates --- repo_watcher.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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