Fix for calling -w without -a.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2017-02-27 11:40:20 -08:00
parent 83b0600863
commit 17b0db6515
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC

4
pihole
View file

@ -50,10 +50,10 @@ debugFunc() {
# Pull off the `debug` leaving passed call augmentation flags in $1
shift
if [[ "${1}" == "-a" ]]; then
if [[ "$@" == *"-a"* ]]; then
automated="true"
fi
if [[ "${2}" == "-w" ]]; then
if [[ "$@" == *"-w"* ]]; then
web="true"
fi