mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Fix blockpage error if whitelisted, blacklisted, or regex filtered
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
f1733f9c5d
commit
8d9ff550d4
@ -115,7 +115,9 @@ scanDatabaseTable() {
|
|||||||
wbMatch=true
|
wbMatch=true
|
||||||
|
|
||||||
# Print table name
|
# Print table name
|
||||||
echo " ${matchType^} found in ${COL_BOLD}${table^}${COL_NC}"
|
if [[ -z "${blockpage}" ]]; then
|
||||||
|
echo " ${matchType^} found in ${COL_BOLD}${table^}${COL_NC}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Loop over results and print them
|
# Loop over results and print them
|
||||||
mapfile -t results <<< "${result}"
|
mapfile -t results <<< "${result}"
|
||||||
@ -159,7 +161,7 @@ if [[ "${#regexList[@]}" -ne 0 ]]; then
|
|||||||
# shellcheck disable=SC2001
|
# shellcheck disable=SC2001
|
||||||
echo "${str_result}" | sed 's/^/ /'
|
echo "${str_result}" | sed 's/^/ /'
|
||||||
else
|
else
|
||||||
echo "π Regex list"
|
echo "π .wildcard"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user