directory updates

This commit is contained in:
Nicole Rappe 2023-09-22 04:08:46 -06:00
parent 704071f485
commit bb82423afd

View File

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