fix: sed syntax to recognise newline

close #79
This commit is contained in:
MDLeom 2023-04-29 04:08:15 +00:00
parent 7000159da1
commit ca0cb81902
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 2 additions and 2 deletions

View File

@ -335,14 +335,14 @@ RPZ_SYNTAX="\n\$TTL 30\n@ IN SOA rpz.malware-filter.gitlab.io. hostmaster.rpz.ma
cat "malware-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/urlhaus-filter-rpz.conf"
cat "malware-hosts-online.txt" | \
sed "s/$/ CNAME ./g" | \
sed "1i $RPZ_SYNTAX" | \
sed '1 i\'"$RPZ_SYNTAX"'' | \
sed "1i $COMMENT_ONLINE" | \
sed "s/^#/;/g" | \
sed "1s/Blocklist/RPZ Blocklist/" > "../public/urlhaus-filter-rpz-online.conf"