Added file checking instead of folder checking

This commit is contained in:
Nicole Rappe 2023-09-22 03:05:37 -06:00
parent c0408c6560
commit eb02daf2ba

View File

@ -14,7 +14,7 @@ while true; do
cd /root/Repo_Watcher
# 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
echo "Repository $REPO_URL doesn't exist locally - Downloading..."
git clone $REPO_URL repo