Fixed Unexpected Script Looping Issue
This commit is contained in:
parent
c462c216da
commit
2bfa8aab9b
@ -17,12 +17,11 @@ while true; do
|
|||||||
if [ ! -d "repo" ]; then
|
if [ ! -d "repo" ]; then
|
||||||
echo "Repository $REPO_URL doesn't exist locally - Downloading..."
|
echo "Repository $REPO_URL doesn't exist locally - Downloading..."
|
||||||
git clone $REPO_URL repo
|
git clone $REPO_URL repo
|
||||||
|
cd repo
|
||||||
|
rsync -av --delete ./ /DATA
|
||||||
|
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd repo
|
|
||||||
rsync -av --delete ./ /DATA
|
|
||||||
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
|
|
||||||
|
|
||||||
# Fetch the latest changes
|
# Fetch the latest changes
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user