diff --git a/repo_watcher.sh b/repo_watcher.sh index 51a1a70..cf23585 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -15,10 +15,13 @@ while true; do # Clone the repo if it doesn't exist if [ ! -d "repo" ]; then + echo "Repository $REPO_URL doesn't exist locally - Downloading..." git clone $REPO_URL repo 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