This commit is contained in:
Gerardo 2020-04-19 16:21:54 +02:00 committed by GitHub
parent 1ab4565e57
commit 680106582b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ _initAuth() {
return 1 return 1
fi fi
domainData=$(echo "$response" | tr -d '\r') domainData=$(echo "$response" | tr -d '\r')
# get all Ids and peek only values # get all Ids and peek only values
temp="$(echo "$domainData" | _egrep_o "Id\": [^,]*" | cut -d : -f 2 | head -1)" # first element is zone Id temp="$(echo "$domainData" | _egrep_o "Id\": [^,]*" | cut -d : -f 2 | head -1)" # first element is zone Id
domain_id=$temp domain_id=$temp
@ -185,7 +185,7 @@ _extract_record_id() {
_debug printf "%s\t%s\n" "$i" _debug printf "%s\t%s\n" "$i"
#_arrayname=$i #_arrayname=$i
_arrayId=$j _arrayId=$j
_info "Found txt record id: $_arrayId" _info "Found txt record id: $_arrayId"
fi fi
j=$(_math "$j" + 1) j=$(_math "$j" + 1)
done done
@ -198,7 +198,7 @@ _extract_record_id() {
return 0 return 0
fi fi
n=$(_math "$n" + 1) n=$(_math "$n" + 1)
done done
return 1 return 1
} }