Browse Source

format bash script

pull/3336/head
Vahid Fardi 5 years ago
parent
commit
7e62f80705
  1. 2
      dnsapi/dns_arvan.sh

2
dnsapi/dns_arvan.sh

@ -80,7 +80,7 @@ dns_arvan_rm() {
return 1
fi
_record_id=$(echo "$response" | _egrep_o ".\"id\":\"[^\"]*\",\"type\":\"txt\",\"name\":\"_acme-challenge\",\"value\":{\"text\":\"$txtvalue\"}" | cut -d : -f 2 | cut -d , -f 1 |tr -d \")
_record_id=$(echo "$response" | _egrep_o ".\"id\":\"[^\"]*\",\"type\":\"txt\",\"name\":\"_acme-challenge\",\"value\":{\"text\":\"$txtvalue\"}" | cut -d : -f 2 | cut -d , -f 1 | tr -d \")
if ! _arvan_rest "DELETE" "${_domain}/dns-records/${_record_id}"; then
_err "Error on Arvan Api"
return 1

Loading…
Cancel
Save