Updated Notification Strings

This commit is contained in:
Nicole Rappe 2023-09-23 00:37:29 -06:00
parent 6667890e2f
commit 9e29b8014f

View File

@ -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