Update update.sh

Adding quotation marks for $URL
This commit is contained in:
trixam
2021-05-03 14:40:08 +02:00
committed by GitHub
parent 460214f848
commit 60e57bce52

View File

@ -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