mirror of
https://github.com/uklans/cache-domains
synced 2024-11-22 03:13:03 +00:00
Remove duplicates in Unbound generation script
#149 introduced a minor regression which included duplicates for the Unbound generation script. While this does not have a technical impact it may cause confusion for users, this PR will ignore duplicate entries.
This commit is contained in:
parent
e20cec6475
commit
1cbdc8dbf4
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ while read entry; do
|
|||
continue
|
||||
fi
|
||||
parsed=$(echo $fileentry | sed -e "s/^\*\.//")
|
||||
if grep -qx "$parsed" $outputfile; then
|
||||
if grep -qx " local-zone: \"${parsed}\" redirect" $outputfile; then
|
||||
continue
|
||||
fi
|
||||
if [[ $(head -n 1 $outputfile) != "server:" ]]; then
|
||||
|
|
Loading…
Reference in a new issue