From 588e8fa02c6f4b5a55d8f8b60566ebfaaa2ce1be Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 21 May 2020 13:56:58 -0500 Subject: [PATCH] -f not -d --- gravity-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 6f70a82..8b93397 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -49,7 +49,7 @@ else fi # check to see if current pihole directory is correct -if [ -d ${PIHOLE_DIR}/${GRAVITY_FI} ] +if [ -f ${PIHOLE_DIR}/${GRAVITY_FI} ] then echo -e "${GREEN}Success${NC}: Required file ${PIHOLE_DIR}/${GRAVITY_FI} is present" else