mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-02 04:22:44 +00:00
shfmt update
This commit is contained in:
parent
5a22a4f829
commit
d583de8c2e
@ -131,11 +131,11 @@ _get_zoneid() {
|
|||||||
|
|
||||||
if _hosttech_rest GET "zones?query=${_domain}"; then
|
if _hosttech_rest GET "zones?query=${_domain}"; then
|
||||||
if [ "$(echo "$_response" | _egrep_o '"name":"[^"]*' | cut -d'"' -f4)" = "${_domain}" ]; then
|
if [ "$(echo "$_response" | _egrep_o '"name":"[^"]*' | cut -d'"' -f4)" = "${_domain}" ]; then
|
||||||
# Get the id of the zone in question
|
# Get the id of the zone in question
|
||||||
_zoneid="$(echo "$_response" | _egrep_o '"id":[0-9]*' | cut -d':' -f2)"
|
_zoneid="$(echo "$_response" | _egrep_o '"id":[0-9]*' | cut -d':' -f2)"
|
||||||
if [ -z "$_zoneid" ]; then
|
if [ -z "$_zoneid" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user