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