change IFS before subshell
There needs to be a change in IFS before the 2 curl commands in order to keep line by line formatting
This commit is contained in:
parent
2fb0e7c473
commit
02ae3b6bd3
@ -15,7 +15,7 @@ elif [ -S /tmp/autoconf.sock ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# generate new conf
|
# generate new conf
|
||||||
BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list;
|
IFS= BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list;
|
||||||
curl -s https://raw.githubusercontent.com/JayBizzle/Crawler-Detect/master/raw/Crawlers.txt | sort -u)"
|
curl -s https://raw.githubusercontent.com/JayBizzle/Crawler-Detect/master/raw/Crawlers.txt | sort -u)"
|
||||||
if [ "$?" -ne 0 ] ; then
|
if [ "$?" -ne 0 ] ; then
|
||||||
job_log "[BLACKLIST] can't update user-agent list"
|
job_log "[BLACKLIST] can't update user-agent list"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user