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:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Amir Zarrinkafsh
					Amir Zarrinkafsh