mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
update-ngxblocker: fix dash shell incompatibility
closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/75 * dash shell need $@ to be quoted * SCRIPT_DIR is checked by install-ngxblocker so not passed to check_dirs()
This commit is contained in:
parent
ea4f48e9ee
commit
26fec015ed
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ check_version() {
|
|||
}
|
||||
|
||||
check_dirs() {
|
||||
local x= dirs=$@
|
||||
local x= dirs="$@"
|
||||
|
||||
for x in $dirs; do
|
||||
if [ ! -d $x ]; then
|
||||
|
@ -274,10 +274,10 @@ main() {
|
|||
fi
|
||||
|
||||
check_depends
|
||||
check_dirs $BOTS_DIR $CONF_DIR $SCRIPT_DIR
|
||||
|
||||
# parse command line
|
||||
get_options $@
|
||||
check_dirs $BOTS_DIR $CONF_DIR
|
||||
url=$REPO/$remote_dir/$file
|
||||
output=$CONF_DIR/$file
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue