mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-06 06:00:54 +00:00
Change the case of some variables
Just for consistency Signed-off-by: MMotti <matthew.w.motti@gmail.com>
This commit is contained in:
parent
10fbed50f3
commit
a9d0690f4d
@ -133,14 +133,14 @@ scanDatabaseTable "${domainQuery}" "whitelist" "${exact}"
|
|||||||
scanDatabaseTable "${domainQuery}" "blacklist" "${exact}"
|
scanDatabaseTable "${domainQuery}" "blacklist" "${exact}"
|
||||||
|
|
||||||
# Scan Regex table
|
# Scan Regex table
|
||||||
mapfile -t regexlist < <(sqlite3 "${gravityDBfile}" "SELECT domain FROM vw_regex" 2> /dev/null)
|
mapfile -t regexList < <(sqlite3 "${gravityDBfile}" "SELECT domain FROM vw_regex" 2> /dev/null)
|
||||||
|
|
||||||
# If we have regexps to process
|
# If we have regexps to process
|
||||||
if [[ "${#regexlist[@]}" -ne 0 ]]; then
|
if [[ "${#regexList[@]}" -ne 0 ]]; then
|
||||||
# Split regexps over a new line
|
# Split regexps over a new line
|
||||||
str_regexlist=$(printf '%s\n' "${regexlist[@]}")
|
str_regexList=$(printf '%s\n' "${regexList[@]}")
|
||||||
# Check domainQuery against regexps
|
# Check domainQuery against regexps
|
||||||
mapfile -t regexMatches < <(scanList "${domainQuery}" "${str_regexlist}" "regex")
|
mapfile -t regexMatches < <(scanList "${domainQuery}" "${str_regexList}" "regex")
|
||||||
# If there were regex matches
|
# If there were regex matches
|
||||||
if [[ "${#regexMatches[@]}" -ne 0 ]]; then
|
if [[ "${#regexMatches[@]}" -ne 0 ]]; then
|
||||||
# Split matching regexps over a new line
|
# Split matching regexps over a new line
|
||||||
|
Loading…
Reference in New Issue
Block a user