Added file checking instead of folder checking
This commit is contained in:
parent
c0408c6560
commit
eb02daf2ba
@ -14,7 +14,7 @@ while true; do
|
|||||||
cd /root/Repo_Watcher
|
cd /root/Repo_Watcher
|
||||||
|
|
||||||
# Clone the repo if it doesn't exist
|
# Clone the repo if it doesn't exist
|
||||||
if [ ! -d "repo" ]; then
|
if [ -z "$(find repo -maxdepth 0 -type f -o -type d 2>/dev/null)" ]; then
|
||||||
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
|
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user