From 1cbdc8dbf43fab84ec22e93f43f9d850727b93fa Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 15 Jun 2021 13:14:49 +1000 Subject: [PATCH] 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. --- scripts/create-unbound.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-unbound.sh b/scripts/create-unbound.sh index 1dc718a..e147adc 100755 --- a/scripts/create-unbound.sh +++ b/scripts/create-unbound.sh @@ -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