Update dns_leaseweb.sh

This commit is contained in:
m-boone 2018-06-14 12:32:59 +02:00 committed by GitHub
parent 105c118a0b
commit badfce6d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ dns_leaseweb_add() {
fi
else
_info "Record already present, OK"
return 0
return 0
fi
else
_info "No TXT records set found. Adding records set"
@ -159,9 +159,9 @@ _dns_leaseweb_get_root() {
fi
if _contains "$response" "\"domainName\":\"$h\"" >/dev/null; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain=$h
return 0
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain=$h
return 0
fi
p=$i
i=$(_math "$i" + 1)