fix hood parsing
This commit is contained in:
parent
6ac04bef02
commit
11c105e6f0
|
@ -115,7 +115,7 @@ GetOwnGlueRecords() {
|
||||||
NormalizeZoneFileFormatting
|
NormalizeZoneFileFormatting
|
||||||
}
|
}
|
||||||
GetOwnHoods() {
|
GetOwnHoods() {
|
||||||
Entries="$(sed -ne "s/^\s*\(\S*\).*\s\+[Ii][Nn]\s\+[Nn][Ss]\s\+""$(GetServernameSEDEntry "$1")""\s*;\s*Subnets:\s*\([^;]*\)/\1 \3/p" "$2")"
|
Entries="$(sed -ne "s/^\s*\(\S*\)[^;]*\s\+[Ii][Nn]\s\+[Nn][Ss]\s\+""$(GetServernameSEDEntry "$1")""\s*;\s*Subnets:\s*\([^;]*\)/\1 \3/p" "$2")"
|
||||||
Entries="$(echo "$Entries" | sed -r 's/\s+/#/g')"
|
Entries="$(echo "$Entries" | sed -r 's/\s+/#/g')"
|
||||||
|
|
||||||
echo "$Entries"
|
echo "$Entries"
|
||||||
|
|
Loading…
Reference in New Issue