Simplified Notifications Further
This commit is contained in:
parent
9e29b8014f
commit
846139600f
@ -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 "Downloading: $REPO_URL..." $NTFY_URL
|
||||
echo "Downloading: $REPO_URL..."
|
||||
curl -d "Pulling: $REPO_URL" $NTFY_URL
|
||||
echo "Pulling: $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 "Pulling Updates: $REPO_URL" $NTFY_URL
|
||||
echo "Pulling Updates: $REPO_URL"
|
||||
curl -d "Pulling: $REPO_URL" $NTFY_URL
|
||||
echo "Pulling: $REPO_URL"
|
||||
git pull origin main
|
||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user