mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
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:
parent
300a333381
commit
8787bfd7fd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue