more content->record fixes

This commit is contained in:
Matthew Saunders Brown 2022-01-27 13:26:20 -08:00
parent 21b29e46c0
commit 31387fd8bd

View File

@ -89,10 +89,10 @@ if [[ $zone_status = 200 ]]; then
data="{\"rrsets\":[{\"name\":\"$name\",\"type\":\"$type\",\"ttl\":$ttl,\"changetype\":\"REPLACE\",\"records\":["
# turn content in to array of records
# turn record in to array of records
orig_ifs="$IFS"
IFS='|'
read -r -a resourcerecords <<< "$content"
read -r -a resourcerecords <<< "$record"
IFS="$orig_ifs"
# get number of records in set