mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-11 07:44:42 +00:00
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:
parent
cce45d487f
commit
4afe3094ea
2 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue