|
|
@ -130,8 +130,6 @@ _get_root() {
|
|
|
|
i=1
|
|
|
|
i=1
|
|
|
|
p=1
|
|
|
|
p=1
|
|
|
|
|
|
|
|
|
|
|
|
_anx_rest GET "zone.json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
while true; do
|
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
|
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
|
|
|
|
_debug h "$h"
|
|
|
|
_debug h "$h"
|
|
|
@ -140,6 +138,7 @@ _get_root() {
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_anx_rest GET "zone.json/${h}"
|
|
|
|
if _contains "$response" "\"name\":\"$h\""; then
|
|
|
|
if _contains "$response" "\"name\":\"$h\""; then
|
|
|
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
|
|
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
|
|
|
_domain=$h
|
|
|
|
_domain=$h
|
|
|
|