From 02ae3b6bd321e8bbbef47d5a62bfc393a5335298 Mon Sep 17 00:00:00 2001 From: Cyril Chaboisseau Date: Sat, 1 May 2021 15:48:33 +0200 Subject: [PATCH] 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 --- scripts/user-agents.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/user-agents.sh b/scripts/user-agents.sh index 3837392..8d091ed 100755 --- a/scripts/user-agents.sh +++ b/scripts/user-agents.sh @@ -15,7 +15,7 @@ elif [ -S /tmp/autoconf.sock ] ; then fi # 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)" if [ "$?" -ne 0 ] ; then job_log "[BLACKLIST] can't update user-agent list"