Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDL6ER <dl6er@dl6er.de>2019-12-15 14:55:19 +0300
committerDL6ER <dl6er@dl6er.de>2019-12-15 14:55:19 +0300
commit2444296348d6ea1b99a01160ba5f6d3e2670c013 (patch)
treed63026b2389c255e2a0987785bc97de99ca8fa2d /advanced
parent4be7ebe61f50516d4ab5ac845700afafbe99da61 (diff)
Again, Mr. Stickler
Signed-off-by: DL6ER <dl6er@dl6er.de>
Diffstat (limited to 'advanced')
-rwxr-xr-xadvanced/Scripts/query.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/advanced/Scripts/query.sh b/advanced/Scripts/query.sh
index 0ba9ae40..a96129e0 100755
--- a/advanced/Scripts/query.sh
+++ b/advanced/Scripts/query.sh
@@ -13,7 +13,6 @@
piholeDir="/etc/pihole"
gravityDBfile="${piholeDir}/gravity.db"
options="$*"
-adlist=""
all=""
exact=""
blockpage=""
@@ -153,7 +152,7 @@ scanRegexDatabaseTable() {
type="${3:-}"
# Query all regex from the corresponding database tables
- mapfile -t regexList < <(sqlite3 "${gravityDBfile}" "SELECT domain FROM domainlist WHERE type = "${type} 2> /dev/null)
+ mapfile -t regexList < <(sqlite3 "${gravityDBfile}" "SELECT domain FROM domainlist WHERE type = ${type}" 2> /dev/null)
# If we have regexps to process
if [[ "${#regexList[@]}" -ne 0 ]]; then