diff --git a/repo_watcher.sh b/repo_watcher.sh index 4850be3..6a426f8 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -12,8 +12,8 @@ while true; do # Clone the repo if it doesn't exist if [ -z "$(find /root/Repo_Watcher/repo -maxdepth 1 -mindepth 1 -type f -o -type d 2>/dev/null)" ]; then - curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL - echo "Repository $REPO_URL doesn't exist locally - Downloading..." + curl -d "Downloading: $REPO_URL..." $NTFY_URL + echo "Downloading: $REPO_URL..." git clone $REPO_URL repo cd repo rsync -av --delete --exclude '.git/' ./ /DATA @@ -32,8 +32,8 @@ while true; do if [ $LOCAL = $REMOTE ]; then echo "Repository Up-to-Date" else - curl -d "$REPO_URL Automatically Pulling Updates..." $NTFY_URL - echo "Pulling Updates from Repository..." + curl -d "Pulling Updates: $REPO_URL" $NTFY_URL + echo "Pulling Updates: $REPO_URL" git pull origin main rsync -av --delete --exclude '.git/' ./ /DATA fi