diff --git a/gravity.sh b/gravity.sh
index 2f8993e4..11b4a217 100755
--- a/gravity.sh
+++ b/gravity.sh
@@ -19,7 +19,7 @@ sources=('https://adaway.org/hosts.txt'
 adList=/etc/hosts
 origin=/etc/pihole
 piholeDir=/etc/pihole
-if [ -f $piholeDir/pihole.conf ]; then
+if [[ -f $piholeDir/pihole.conf ]]; then
 	. $piholeDir/pihole.conf
 fi