mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 21:31:51 +00:00
dnsmint: format case blocks with shfmt -i 2
This commit is contained in:
1 parent
4f361c8c4d
commit
6bed53d080
1 file changed
+14
-14
+14
-14
@@ -119,13 +119,13 @@ _dnsmint_rest() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
case "$_code" in
|
case "$_code" in
|
||||||
2*) return 0 ;;
|
2*) return 0 ;;
|
||||||
*)
|
*)
|
||||||
# The API says why in the body - a key narrowed to another hostname, a
|
# The API says why in the body - a key narrowed to another hostname, a
|
||||||
# name that is not live - and that is more use than the status alone.
|
# name that is not live - and that is more use than the status alone.
|
||||||
_err "error $_ep: HTTP $_code $response"
|
_err "error $_ep: HTTP $_code $response"
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,13 +153,13 @@ _dnsmint_host() {
|
|||||||
|
|
||||||
for _h in $(echo "$response" | _egrep_o '"hostname":"[^"]*"' | cut -d'"' -f4); do
|
for _h in $(echo "$response" | _egrep_o '"hostname":"[^"]*"' | cut -d'"' -f4); do
|
||||||
case "$_name" in
|
case "$_name" in
|
||||||
*".$_h")
|
*".$_h")
|
||||||
# Longest suffix wins, so a.b.example.dev prefers b.example.dev over
|
# Longest suffix wins, so a.b.example.dev prefers b.example.dev over
|
||||||
# example.dev when both are hostnames on the account.
|
# example.dev when both are hostnames on the account.
|
||||||
if [ "${#_h}" -gt "${#_host_sub}" ]; then
|
if [ "${#_h}" -gt "${#_host_sub}" ]; then
|
||||||
_host_sub="$_h"
|
_host_sub="$_h"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||