From 17b0db65156dedc9efa7cd71ac3d8199f593f0a2 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 27 Feb 2017 11:40:20 -0800 Subject: [PATCH] Fix for calling -w without -a. Signed-off-by: Dan Schaper --- pihole | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pihole b/pihole index cfe032ff..41946f35 100755 --- a/pihole +++ b/pihole @@ -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