mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 13:12:49 +00:00
fix Shellcheck
This commit is contained in:
parent
4bf4259dda
commit
1078fdc157
@ -102,16 +102,16 @@ dns_alviy_rm() {
|
|||||||
# _domain=domain.com
|
# _domain=domain.com
|
||||||
_get_root() {
|
_get_root() {
|
||||||
domain=$1
|
domain=$1
|
||||||
i=2
|
|
||||||
h=$(printf "%s" "$domain" | rev | cut -d . -f 1-2 | rev)
|
h=$(printf "%s" "$domain" | rev | cut -d . -f 1-2 | rev)
|
||||||
if [ -z "$h" ]; then
|
if [ -z "$h" ]; then
|
||||||
#not valid
|
#not valid
|
||||||
_debug "can't get host from $domain"
|
hd=$(printf "%s" "$domain" | rev)
|
||||||
|
_debug "can't get host from $domain $hd"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! _alviy_rest GET "zone/$h/"; then
|
if ! _alviy_rest GET "zone/$h/"; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if _contains "$response" '"code":"NOT_FOUND"'; then
|
if _contains "$response" '"code":"NOT_FOUND"'; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user