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
This commit is contained in:
Stuart Cardall 2018-10-29 10:51:53 +00:00
parent 300a333381
commit 8787bfd7fd
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -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