Grep should start at the beginning of line to make sure it doesn't fire on `#` beginning lines.

pull/890/head
Dan Schaper 8 years ago
parent b636c1e1f8
commit fe18d69b65

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

Loading…
Cancel
Save