mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-14 14:12:47 +00:00
now passing all shellcheck checks
This commit is contained in:
parent
872a1777b4
commit
9b55016904
@ -24,7 +24,7 @@ dns_ultra_add(){
|
|||||||
_saveaccountconf_mutable ULTRA_USR "$ULTRA_USR"
|
_saveaccountconf_mutable ULTRA_USR "$ULTRA_USR"
|
||||||
_saveaccountconf_mutable ULTRA_PWD "$ULTRA_PWD"
|
_saveaccountconf_mutable ULTRA_PWD "$ULTRA_PWD"
|
||||||
_debug "First detect the root zone"
|
_debug "First detect the root zone"
|
||||||
if ! _get_root "${fulldomain}"; then
|
if ! _get_root "$fulldomain"; then
|
||||||
_err "invalid domain"
|
_err "invalid domain"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -69,7 +69,7 @@ dns_ultra_rm(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
_debug "First detect the root zone"
|
_debug "First detect the root zone"
|
||||||
if ! _get_root "${fulldomain}"; then
|
if ! _get_root "$fulldomain"; then
|
||||||
_err "invalid domain"
|
_err "invalid domain"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -87,7 +87,7 @@ dns_ultra_rm(){
|
|||||||
|
|
||||||
count=$(printf "%s\n" "$response" | _egrep_o "\"returnedCount\":[^,]*" | cut -d: -f2 | cut -d'}' -f1)
|
count=$(printf "%s\n" "$response" | _egrep_o "\"returnedCount\":[^,]*" | cut -d: -f2 | cut -d'}' -f1)
|
||||||
_debug count "${count}"
|
_debug count "${count}"
|
||||||
if [ "${count}" -eq "" ]; then
|
if [ "${count}" = "" ]; then
|
||||||
_info "Text record is not present, will not delete anything."
|
_info "Text record is not present, will not delete anything."
|
||||||
else
|
else
|
||||||
if ! _ultra_rest DELETE "zones/$_domain_id/rrsets/TXT/${_sub_domain}" '{"ttl":300,"rdata":["'"${txtvalue}"'"]}'; then
|
if ! _ultra_rest DELETE "zones/$_domain_id/rrsets/TXT/${_sub_domain}" '{"ttl":300,"rdata":["'"${txtvalue}"'"]}'; then
|
||||||
@ -152,7 +152,7 @@ _ultra_rest(){
|
|||||||
_debug data "${data}"
|
_debug data "${data}"
|
||||||
response="$(_post "${data}" "${ULTRA_API}"/"${ep}" "" "${m}")"
|
response="$(_post "${data}" "${ULTRA_API}"/"${ep}" "" "${m}")"
|
||||||
else
|
else
|
||||||
response="$(_get ${data} ${ULTRA_API}/${ep})"
|
response="$(_get "$ULTRA_API/$ep")"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user