From 2992734ec3d740e1bcc02b1d5403a70833efd8de Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 29 Apr 2023 04:12:17 +0000 Subject: [PATCH] fix: sed syntax to recognise newline https://gitlab.com/malware-filter/urlhaus-filter/-/issues/79 --- src/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.sh b/src/script.sh index a1ba89a..d6db0d3 100644 --- a/src/script.sh +++ b/src/script.sh @@ -115,7 +115,7 @@ RPZ_SYNTAX="\n\$TTL 30\n@ IN SOA rpz.malware-filter.gitlab.io. hostmaster.rpz.ma cat "domains.txt" | \ sed "s/$/ CNAME ./g" | \ -sed "1i $RPZ_SYNTAX" | \ +sed '1 i\'"$RPZ_SYNTAX"'' | \ sed "1i $COMMENT" | \ sed "s/^#/;/g" | \ sed "1s/Blocklist/RPZ Blocklist/" > "../public/vn-badsite-filter-rpz.conf"