mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Consistency
We went with tabs earlier, may as well make that the "standard". Easy enough to switch to spaces too if that's desired with expand(1)
This commit is contained in:
parent
ebbe1fc236
commit
640398ced4
1 changed files with 60 additions and 61 deletions
5
pihole
5
pihole
|
@ -66,8 +66,7 @@ setupLCDFunction() {
|
|||
|
||||
queryFunc() {
|
||||
domain=$2
|
||||
for list in /etc/pihole/list.*
|
||||
do
|
||||
for list in /etc/pihole/list.*; do
|
||||
count=$(grep ${domain} $list | wc -l)
|
||||
echo "::: ${list} (${count} results)"
|
||||
if [[ ${count} > 0 ]]; then
|
||||
|
@ -125,7 +124,7 @@ if [[ $# = 0 ]]; then
|
|||
fi
|
||||
|
||||
# Handle redirecting to specific functions based on arguments
|
||||
case "$1" in
|
||||
case "${1}" in
|
||||
"-w" | "whitelist" ) whitelistFunc "$@";;
|
||||
"-b" | "blacklist" ) blacklistFunc "$@";;
|
||||
"-d" | "debug" ) debugFunc;;
|
||||
|
|
Loading…
Reference in a new issue