Merge pull request #170 from nightah/fix-unbound-duplicates
Remove duplicates in Unbound generation script
This commit is contained in:
commit
7844a44afe
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user