fix: compatibility with Adguard Home

- https://gitlab.com/curben/urlhaus-filter/-/issues/19
This commit is contained in:
MDLeom 2020-07-08 11:28:35 +01:00
parent 1daa77e493
commit 28a6304640
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 7 additions and 1 deletions

View File

@ -101,7 +101,13 @@ FIFTH_LINE="! License: https://creativecommons.org/publicdomain/zero/1.0/"
SIXTH_LINE="! Source: https://www.phishtank.com/"
COMMENT_UBO="$FIRST_LINE\n$SECOND_LINE\n$THIRD_LINE\n$FOURTH_LINE\n$FIFTH_LINE\n$SIXTH_LINE"
cat "phishing-domains.txt" "phishing-url-top-domains.txt" | \
# Compatibility with Adguard Home
# https://gitlab.com/curben/urlhaus-filter/-/issues/19
cat "phishing-domains.txt" | \
sed "s/^/||/g" | \
sed "s/$/^/g" > "phishing-domains-adguard.txt"
cat "phishing-domains-adguard.txt" "phishing-url-top-domains.txt" | \
sort | \
sed '1 i\'"$COMMENT_UBO"'' > "../dist/phishing-filter.txt"