-f not -d

This commit is contained in:
Michael Stanclift 2020-05-21 13:56:58 -05:00
parent 76be06d6a4
commit 588e8fa02c

View File

@ -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