mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 12:02:51 +00:00
Tidied script
This commit is contained in:
parent
385a2c6acb
commit
c00f316946
@ -77,7 +77,6 @@ dns_http_net_rm() {
|
||||
_get_root() {
|
||||
domain=$1
|
||||
i=2
|
||||
p=1
|
||||
while true; do
|
||||
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
|
||||
if [ -z "$h" ]; then
|
||||
@ -87,11 +86,9 @@ _get_root() {
|
||||
_debug "Detecting if $h is the dns zone"
|
||||
|
||||
if _check_http_net_zone "$h"; then
|
||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
||||
_domain="$h"
|
||||
return 0
|
||||
fi
|
||||
p=$i
|
||||
i=$(_math "$i" + 1)
|
||||
done
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user