mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 14:20:18 +00:00
Grep should start at the beginning of line to make sure it doesn't fire on #
beginning lines.
This commit is contained in:
parent
b636c1e1f8
commit
fe18d69b65
1 changed files with 1 additions and 1 deletions
2
pihole
2
pihole
|
@ -154,7 +154,7 @@ piholeStatus() {
|
||||||
else
|
else
|
||||||
echo "::: Pi-hole blocking is Disabled";
|
echo "::: Pi-hole blocking is Disabled";
|
||||||
fi
|
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
|
#list set
|
||||||
if [[ "${1}" == "web" ]] ; then
|
if [[ "${1}" == "web" ]] ; then
|
||||||
echo 1;
|
echo 1;
|
||||||
|
|
Loading…
Reference in a new issue