neilpang 3 years ago
parent
commit
3ce67b282f
  1. 4
      dnsapi/dns_selectel.sh

4
dnsapi/dns_selectel.sh

@ -76,7 +76,7 @@ dns_selectel_rm() {
return 1 return 1
fi fi
_record_seg="$(echo "$response" | _egrep_o "\"content\" *: *\"$txtvalue\"[^}]*}")"
_record_seg="$(echo "$response" | _egrep_o "[^{]*\"content\" *: *\"$txtvalue\"[^}]*}")"
_debug2 "_record_seg" "$_record_seg" _debug2 "_record_seg" "$_record_seg"
if [ -z "$_record_seg" ]; then if [ -z "$_record_seg" ]; then
_err "can not find _record_seg" _err "can not find _record_seg"
@ -120,7 +120,7 @@ _get_root() {
return 1 return 1
fi fi
if _contains "$response" "\"name\": *\"$h\","; then
if _contains "$response" "\"name\" *: *\"$h\","; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain=$h _domain=$h
_debug "Getting domain id for $h" _debug "Getting domain id for $h"

Loading…
Cancel
Save