fix: sed syntax to recognise newline

https://gitlab.com/malware-filter/urlhaus-filter/-/issues/79
This commit is contained in:
MDLeom 2023-04-29 04:11:14 +00:00
parent 4a99344bee
commit 7dbdc85163
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ RPZ_SYNTAX="\n\$TTL 30\n@ IN SOA rpz.curben.gitlab.io. hostmaster.rpz.curben.git
cat "phishing-notop-hosts.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/phishing-filter-rpz.conf"