update get_root

This commit is contained in:
Augustin-FL 2019-02-15 07:58:43 +00:00
parent 5c94147603
commit 841513501a

View File

@ -122,10 +122,8 @@ _get_root() {
#not valid
return 1
fi
if ! _online_rest GET "domain/$h/version/active"; then
_err "Unable to retrive DNS zone matching this domain"
return 1
fi
_online_rest GET "domain/$h/version/active"
if ! _contains "$response" "Domain not found" >/dev/null; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
@ -136,6 +134,7 @@ _get_root() {
p=$i
i=$(_math "$i" + 1)
done
_err "Unable to retrive DNS zone matching this domain"
return 1
}