Browse Source

Formatted

pull/4153/head
M.A.Sarbanha 2 years ago
committed by GitHub
parent
commit
058ef52c51
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_arvancdn.sh

2
dnsapi/dns_arvancdn.sh

@ -69,7 +69,6 @@ dns_arvancdn_rm() {
#_zone=$(echo "${_zone}" | sed "s/.*\.\.//") #_zone=$(echo "${_zone}" | sed "s/.*\.\.//")
_zone=${_zone/*\.\./} _zone=${_zone/*\.\./}
_record_id=$(_record_get_id "${_zone}" "${_challenge}") _record_id=$(_record_get_id "${_zone}" "${_challenge}")
_record_remove "${_zone}" "${_record_id}" _record_remove "${_zone}" "${_record_id}"
@ -143,7 +142,6 @@ _record_get_id() {
_response=$(_get "${ARVAN_CDN_API}/domains/${_zone}/dns-records/?type=txt\&search=${_challenge}" | _json_decode | _normalizeJson | grep -Eo '"id":.*?,"value":\{"text":".*?"\}' | sed 's/"id":"\([^"]*\)".*/\1/') _response=$(_get "${ARVAN_CDN_API}/domains/${_zone}/dns-records/?type=txt\&search=${_challenge}" | _json_decode | _normalizeJson | grep -Eo '"id":.*?,"value":\{"text":".*?"\}' | sed 's/"id":"\([^"]*\)".*/\1/')
_debug2 "_record_get_id(): ${_response}" _debug2 "_record_get_id(): ${_response}"
echo "${_response}" echo "${_response}"
} }

Loading…
Cancel
Save