mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Fix for calling -w without -a.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
83b0600863
commit
17b0db6515
1 changed files with 2 additions and 2 deletions
4
pihole
4
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue