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:
parent
83b0600863
commit
17b0db6515
4
pihole
4
pihole
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user