1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-02 20:20:56 +00:00

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 # Pull off the `debug` leaving passed call augmentation flags in $1
shift shift
if [[ "${1}" == "-a" ]]; then if [[ "$@" == *"-a"* ]]; then
automated="true" automated="true"
fi fi
if [[ "${2}" == "-w" ]]; then if [[ "$@" == *"-w"* ]]; then
web="true" web="true"
fi fi