From 2bfa8aab9b712037e93225607a5679e3a25c81a9 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 22 Sep 2023 01:47:13 -0600 Subject: [PATCH] Fixed Unexpected Script Looping Issue --- repo_watcher.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/repo_watcher.sh b/repo_watcher.sh index cf23585..afdea44 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -17,12 +17,11 @@ while true; do if [ ! -d "repo" ]; then echo "Repository $REPO_URL doesn't exist locally - Downloading..." git clone $REPO_URL repo + cd repo + rsync -av --delete ./ /DATA + curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL fi - cd repo - rsync -av --delete ./ /DATA - curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL - # Fetch the latest changes git fetch origin main