Fixed Unexpected Script Looping Issue

This commit is contained in:
Nicole Rappe 2023-09-22 01:47:13 -06:00
parent c462c216da
commit 2bfa8aab9b

View File

@ -17,11 +17,10 @@ while true; do
if [ ! -d "repo" ]; then
echo "Repository $REPO_URL doesn't exist locally - Downloading..."
git clone $REPO_URL repo
fi
cd repo
rsync -av --delete ./ /DATA
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
fi
# Fetch the latest changes
git fetch origin main