Handle newlines in generation scripts
The generation scripts will now properly handle/ignore empty lines as this previously would cause issues with the generated Unbound output.
This commit is contained in:
@ -64,8 +64,8 @@ while read -r entry; do
|
||||
done <<< $(cat ${basedir}/$filename | sort);
|
||||
# All other entries
|
||||
while read -r fileentry; do
|
||||
# Ignore comments and wildcards
|
||||
if [[ $fileentry =~ ^(\#|\*\.) ]]; then
|
||||
# Ignore comments, newlines and wildcards
|
||||
if [[ $fileentry =~ ^(\#|\*\.) ]] || [[ -z $fileentry ]]; then
|
||||
continue
|
||||
fi
|
||||
parsed=$(echo $fileentry)
|
||||
|
Reference in New Issue
Block a user