From ab6a710c412c7136d11083b1f283aa9077bfac6c Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 21 May 2020 14:33:40 -0500 Subject: [PATCH] Update gravity-sync.sh --- gravity-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 08098bd..99a5346 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -51,11 +51,11 @@ else fi # check to see if current pihole directory is correct -if [ -f ${PIHOLE_DIR}/${GRAVITY_FI} ] +if [ -d ${PIHOLE_DIR} ] then - echo -e "${GREEN}Success${NC}: Required file ${PIHOLE_DIR}/${GRAVITY_FI} is present" + echo -e "${GREEN}Success${NC}: Required folder ${PIHOLE_DIR} is present" else - echo -e "${RED}Failure${NC}: Required file ${PIHOLE_DIR}/${GRAVITY_FI} is missing" + echo -e "${RED}Failure${NC}: Required folder ${PIHOLE_DIR} is missing" exit fi