Browse Source

fix format

pull/5326/head
neil 2 months ago
parent
commit
7031df4948
  1. 1
      dnsapi/dns_netlify.sh
  2. 2
      dnsapi/dns_nw.sh
  3. 4
      dnsapi/dns_scaleway.sh

1
dnsapi/dns_netlify.sh

@ -93,7 +93,6 @@ dns_netlify_rm() {
_err "error removing validation value ($_code)" _err "error removing validation value ($_code)"
return 1 return 1
fi fi
return 0
fi fi
return 1 return 1
} }

2
dnsapi/dns_nw.sh

@ -165,7 +165,7 @@ _get_root() {
if [ "${hostedzone}" ]; then if [ "${hostedzone}" ]; then
_zone_id=$(printf "%s\n" "${hostedzone}" | _egrep_o "\"zone_id\": *[0-9]+" | _head_n 1 | cut -d : -f 2 | tr -d \ ) _zone_id=$(printf "%s\n" "${hostedzone}" | _egrep_o "\"zone_id\": *[0-9]+" | _head_n 1 | cut -d : -f 2 | tr -d \ )
if [ "${_zone_id}" ]; then if [ "${_zone_id}" ]; 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}"
return 0 return 0
fi fi

4
dnsapi/dns_scaleway.sh

@ -41,9 +41,7 @@ dns_scaleway_add() {
_err error "$response" _err error "$response"
return 1 return 1
fi fi
_info "Record added."
return 0
} }
dns_scaleway_rm() { dns_scaleway_rm() {
@ -71,9 +69,7 @@ dns_scaleway_rm() {
_err error "$response" _err error "$response"
return 1 return 1
fi fi
_info "Record deleted."
return 0
} }
#################### Private functions below ################################## #################### Private functions below ##################################

Loading…
Cancel
Save