get response based on $txtvalue

This commit is contained in:
DerVerruckteFuchs 2021-09-12 17:38:27 -04:00
parent 4e553f34ba
commit 4d95e35c06

View File

@ -101,9 +101,9 @@ dns_1984hosting_rm() {
return 1 return 1
fi fi
_htmlget "$url/$_zone_id" "$_sub_domain" _htmlget "$url/$_zone_id" "$txtvalue"
_debug2 _response "$_response" _debug2 _response "$_response"
entry_id="$(echo "$_response" | grep "$txtvalue" | _egrep_o 'entry_[0-9]+' | sed 's/entry_//')" entry_id="$(echo "$_response" | _egrep_o 'entry_[0-9]+' | sed 's/entry_//')"
_debug2 entry_id "$entry_id" _debug2 entry_id "$entry_id"
if [ -z "$entry_id" ]; then if [ -z "$entry_id" ]; then
_err "Error getting TXT entry_id for $1" _err "Error getting TXT entry_id for $1"