From 6bad2d716e976a5dde8d5ddcd5d573837e7fb336 Mon Sep 17 00:00:00 2001 From: Paul Hendryx Date: Wed, 2 Nov 2016 10:04:54 -0400 Subject: [PATCH] replace & with &, static filename output for wget --- root/defaults/blocklist-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/defaults/blocklist-update.sh b/root/defaults/blocklist-update.sh index 09ee255..399a956 100644 --- a/root/defaults/blocklist-update.sh +++ b/root/defaults/blocklist-update.sh @@ -1,13 +1,13 @@ #!/usr/bin/with-contenv bash BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' settings.json` -BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json` +BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json | sed 's/\&/\&/g'` if [ $BLOCKLIST_ENABLED == true ]; then mkdir -p /tmp/blocklists rm -rf /tmp/blocklists/* cd /tmp/blocklists - wget -q $BLOCKLIST_URL + wget -q -O blocklist.gz "$BLOCKLIST_URL" if [ $? == 0 ]; then gunzip *.gz if [ $? == 0 ]; then