Merge pull request #170 from nightah/fix-unbound-duplicates

Remove duplicates in Unbound generation script
This commit is contained in:
James Kinsman 2021-06-17 22:44:12 +01:00 committed by GitHub
commit 7844a44afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ while read entry; do
continue continue
fi fi
parsed=$(echo $fileentry | sed -e "s/^\*\.//") parsed=$(echo $fileentry | sed -e "s/^\*\.//")
if grep -qx "$parsed" $outputfile; then if grep -qx " local-zone: \"${parsed}\" redirect" $outputfile; then
continue continue
fi fi
if [[ $(head -n 1 $outputfile) != "server:" ]]; then if [[ $(head -n 1 $outputfile) != "server:" ]]; then