From 60e57bce526e663171f412a1cfdd305a15a5bede Mon Sep 17 00:00:00 2001 From: trixam Date: Mon, 3 May 2021 14:40:08 +0200 Subject: [PATCH] Update update.sh Adding quotation marks for $URL --- docker/suricata/dist/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/suricata/dist/update.sh b/docker/suricata/dist/update.sh index d0779cd5..76c5de55 100755 --- a/docker/suricata/dist/update.sh +++ b/docker/suricata/dist/update.sh @@ -45,7 +45,7 @@ fi if [ "$FROMURL" != "" ] ; then SAVEIFS=$IFS ; IFS='|' for URL in $FROMURL; do - if [ $(curl -I --silent --output /dev/null --write-out "%{http_code}" $URL) -eq 200 ] ; then + if [ $(curl -I --silent --output /dev/null --write-out "%{http_code}" "$URL") -eq 200 ] ; then rm -rf /tmp/* curl "$URL" -o /tmp/rules.tar.gz tar -xvf /tmp/rules.tar.gz -C /tmp