From 8787bfd7fdfc66c6443f0e8066daa92c9934511b Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Mon, 29 Oct 2018 10:51:53 +0000 Subject: [PATCH] fix DASH incompatibility In Debian's DASH shell local variable lists need to be quoted when manipulated positionally if the list contains a '-': https://linux.die.net/man/1/dash * fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/224 --- setup-ngxblocker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-ngxblocker b/setup-ngxblocker index 66d5442bd..4cbc9142a 100755 --- a/setup-ngxblocker +++ b/setup-ngxblocker @@ -154,7 +154,7 @@ whitelist_manual_domains() { } whitelist_print() { - local type=$1 domain= domain_len=$2 domain_list=$(echo $@ | cut -f3- -d ' ') + local type=$1 domain= domain_len=$2 domain_list="$(echo $@ | cut -f3- -d ' ')" local conf=$BOTS_DIR/whitelist-domains.conf for domain in $domain_list; do