fix dash shell compatibilities install / setup-ngxblocker

fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/39

also fixes a small spacing bug in setup-ngxblocker => nginx.conf
This commit is contained in:
Stuart Cardall 2017-04-27 19:22:51 +00:00
parent cce45d487f
commit 4afe3094ea
No known key found for this signature in database
GPG key ID: EB601090DB74C297
2 changed files with 12 additions and 10 deletions

View file

@ -129,9 +129,9 @@ download_files() {
}
check_config() {
local x=
local x= dirs="$*"
for x in "$@"; do
for x in $dirs; do
if [ ! -d $x ]; then
printf "Creating directory: $x\n"
if [ "$DRY_RUN" = "N" ]; then
@ -268,3 +268,4 @@ exit $?
# PLEASE ALSO SEE THE SETUP SCRIPT TO INSERT THE NECESSARY INCLUDES FOR YOU
### You can now use a setup script contributed by Stuart Cardall to automatically add the includes for you
### See - https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/setup-ngxblocker