From df9b82c90edc03cc10ea94bda103af036c696a7a Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Sun, 19 Apr 2020 14:17:20 +0100 Subject: [PATCH] style: single quote if parameter has double quote --- script.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script.sh b/script.sh index aba306f5..dbe57db0 100644 --- a/script.sh +++ b/script.sh @@ -161,15 +161,15 @@ sed "1s/Blocklist/dnsmasq Blocklist/" > "../urlhaus-filter-dnsmasq-online.conf" ## BIND-compatible blocklist cat "../urlhaus-filter-hosts.txt" | \ grep -vE "^#" | \ -sed "s/^0.0.0.0 /zone \"/g" | \ -sed "s/$/\" { type master; notify no; file \"null.zone.file\"; };/g" | \ +sed 's/^0.0.0.0 /zone "/g' | \ +sed 's/$/" { type master; notify no; file "null.zone.file"; };/g' | \ sed '1 i\'"$COMMENT"'' | \ sed "1s/Blocklist/BIND Blocklist/" > "../urlhaus-filter-bind.conf" cat "../urlhaus-filter-hosts-online.txt" | \ grep -vE "^#" | \ -sed "s/^0.0.0.0 /zone \"/g" | \ -sed "s/$/\" { type master; notify no; file \"null.zone.file\"; };/g" | \ +sed 's/^0.0.0.0 /zone "/g' | \ +sed 's/$/" { type master; notify no; file "null.zone.file"; };/g' | \ sed '1 i\'"$COMMENT"'' | \ sed "1s/Blocklist/BIND Blocklist/" > "../urlhaus-filter-bind-online.conf"