directory updates
This commit is contained in:
parent
704071f485
commit
bb82423afd
@ -19,6 +19,8 @@ while true; do
|
||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||
fi
|
||||
|
||||
cd repo
|
||||
|
||||
# Fetch the latest changes
|
||||
git fetch origin main
|
||||
|
||||
@ -28,9 +30,9 @@ while true; do
|
||||
BASE=$(git merge-base @ @{u})
|
||||
|
||||
if [ $LOCAL = $REMOTE ]; then
|
||||
echo "Repository Up-to-date"
|
||||
echo "Repository Up-to-Date"
|
||||
else
|
||||
curl -d "$REPO_URL Automatically Pulled Update" $NTFY_URL
|
||||
curl -d "$REPO_URL Automatically Pulling Updates..." $NTFY_URL
|
||||
echo "Pulling Updates from Repository..."
|
||||
git pull origin main
|
||||
rsync -av --delete --exclude '.git/' ./ /DATA
|
||||
|
Loading…
x
Reference in New Issue
Block a user