mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
Update update.sh
Adding quotation marks for $URL
This commit is contained in:
parent
460214f848
commit
60e57bce52
1 changed files with 1 additions and 1 deletions
2
docker/suricata/dist/update.sh
vendored
2
docker/suricata/dist/update.sh
vendored
|
@ -45,7 +45,7 @@ fi
|
||||||
if [ "$FROMURL" != "" ] ; then
|
if [ "$FROMURL" != "" ] ; then
|
||||||
SAVEIFS=$IFS ; IFS='|'
|
SAVEIFS=$IFS ; IFS='|'
|
||||||
for URL in $FROMURL; do
|
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/*
|
rm -rf /tmp/*
|
||||||
curl "$URL" -o /tmp/rules.tar.gz
|
curl "$URL" -o /tmp/rules.tar.gz
|
||||||
tar -xvf /tmp/rules.tar.gz -C /tmp
|
tar -xvf /tmp/rules.tar.gz -C /tmp
|
||||||
|
|
Loading…
Reference in a new issue