From fe18d69b659a5f00e0155ba039d7c809fa886edd Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Wed, 2 Nov 2016 09:25:32 -0700 Subject: [PATCH] Grep should start at the beginning of line to make sure it doesn't fire on `#` beginning lines. --- pihole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pihole b/pihole index ace0d9a9..199c0a68 100755 --- a/pihole +++ b/pihole @@ -154,7 +154,7 @@ piholeStatus() { else echo "::: Pi-hole blocking is Disabled"; fi - elif [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "addn-hosts=/") ]] ; then + elif [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "^addn-hosts=/") ]] ; then #list set if [[ "${1}" == "web" ]] ; then echo 1;