mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-02 15:34:12 +00:00
spellcheck
This commit is contained in:
parent
dab244ad25
commit
54eec82311
@ -104,11 +104,11 @@ _get_root() {
|
|||||||
domain=$1
|
domain=$1
|
||||||
i=3
|
i=3
|
||||||
a="init"
|
a="init"
|
||||||
while [ ! -z $a ]; do
|
while [ -n $a ]; do
|
||||||
a=$(printf "%s" "$domain" | cut -d . -f $i-)
|
a=$(printf "%s" "$domain" | cut -d . -f $i-)
|
||||||
i=$(($i + 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
n=$(($i - 3))
|
n=$((i - 3))
|
||||||
h=$(printf "%s" "$domain" | cut -d . -f $n-)
|
h=$(printf "%s" "$domain" | cut -d . -f $n-)
|
||||||
if [ -z "$h" ]; then
|
if [ -z "$h" ]; then
|
||||||
#not valid
|
#not valid
|
||||||
@ -124,7 +124,7 @@ _get_root() {
|
|||||||
if _contains "$response" '"code":"NOT_FOUND"'; then
|
if _contains "$response" '"code":"NOT_FOUND"'; then
|
||||||
_debug "$h not found"
|
_debug "$h not found"
|
||||||
else
|
else
|
||||||
s=$(($n - 1))
|
s=$((n - 1))
|
||||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f -$s)
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f -$s)
|
||||||
_domain="$h"
|
_domain="$h"
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user