fix format
This commit is contained in:
parent
9b2eae24d2
commit
e0381dd757
@ -222,7 +222,7 @@ _get_base_domain() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ -z "$found" ]; then
|
if [ -z "$found" ]; then
|
||||||
page=$(_math $page + 1)
|
page=$(_math "$page" + 1)
|
||||||
nextpage="https://api.bunny.net/dnszone?page=$page"
|
nextpage="https://api.bunny.net/dnszone?page=$page"
|
||||||
## Find the next page if we don't have a match.
|
## Find the next page if we don't have a match.
|
||||||
hasnextpage="$(echo "$domain_list" | _egrep_o "\"HasMoreItems\"\s*:\s*true")"
|
hasnextpage="$(echo "$domain_list" | _egrep_o "\"HasMoreItems\"\s*:\s*true")"
|
||||||
|
@ -113,7 +113,7 @@ _get_root() {
|
|||||||
#cycle through the passed domain seperating out a test domain discarding
|
#cycle through the passed domain seperating out a test domain discarding
|
||||||
# the subdomain by marching thorugh the dots
|
# the subdomain by marching thorugh the dots
|
||||||
while true; do
|
while true; do
|
||||||
_test_domain=$(printf "%s" "$_passed_domain" | cut -d . -f ${_i}-100)
|
_test_domain=$(printf "%s" "$_passed_domain" | cut -d . -f "${_i}"-100)
|
||||||
_debug _test_domain "$_test_domain"
|
_debug _test_domain "$_test_domain"
|
||||||
|
|
||||||
if [ -z "$_test_domain" ]; then
|
if [ -z "$_test_domain" ]; then
|
||||||
@ -123,7 +123,7 @@ _get_root() {
|
|||||||
#report found if the test domain is in the json response and
|
#report found if the test domain is in the json response and
|
||||||
# report the subdomain
|
# report the subdomain
|
||||||
if _contains "$response" "\"$_test_domain\""; then
|
if _contains "$response" "\"$_test_domain\""; then
|
||||||
_sub_domain=$(printf "%s" "$_passed_domain" | cut -d . -f 1-${_p})
|
_sub_domain=$(printf "%s" "$_passed_domain" | cut -d . -f 1-"${_p}")
|
||||||
_domain=${_test_domain}
|
_domain=${_test_domain}
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@ -137,7 +137,7 @@ _get_root_by_getHosts() {
|
|||||||
i=100
|
i=100
|
||||||
p=99
|
p=99
|
||||||
|
|
||||||
while [ $p -ne 0 ]; do
|
while [ "$p" -ne 0 ]; do
|
||||||
|
|
||||||
h=$(printf "%s" "$1" | cut -d . -f "$i"-100)
|
h=$(printf "%s" "$1" | cut -d . -f "$i"-100)
|
||||||
if [ -n "$h" ]; then
|
if [ -n "$h" ]; then
|
||||||
|
@ -159,7 +159,7 @@ _namecom_get_root() {
|
|||||||
|
|
||||||
# Need to exclude the last field (tld)
|
# Need to exclude the last field (tld)
|
||||||
numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
|
numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
|
||||||
while [ $i -le "$numfields" ]; do
|
while [ "$i" -le "$numfields" ]; do
|
||||||
host=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
|
host=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
|
||||||
_debug host "$host"
|
_debug host "$host"
|
||||||
if [ -z "$host" ]; then
|
if [ -z "$host" ]; then
|
||||||
|
@ -109,7 +109,7 @@ _get_root() {
|
|||||||
|
|
||||||
# Need to exclude the last field (tld)
|
# Need to exclude the last field (tld)
|
||||||
numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
|
numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
|
||||||
while [ $i -le "$numfields" ]; do
|
while [ "$i" -le "$numfields" ]; do
|
||||||
host=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
|
host=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
|
||||||
_debug host "$host"
|
_debug host "$host"
|
||||||
if [ -z "$host" ]; then
|
if [ -z "$host" ]; then
|
||||||
|
@ -55,8 +55,6 @@ dns_netlify_add() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_err "Not fully implemented!"
|
|
||||||
return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#Usage: dns_myapi_rm _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
|
#Usage: dns_myapi_rm _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
|
||||||
|
@ -113,7 +113,7 @@ _initAuth() {
|
|||||||
_saveaccountconf_mutable OVH_END_POINT "$OVH_END_POINT"
|
_saveaccountconf_mutable OVH_END_POINT "$OVH_END_POINT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OVH_API="$(_ovh_get_api $OVH_END_POINT)"
|
OVH_API="$(_ovh_get_api "$OVH_END_POINT")"
|
||||||
_debug OVH_API "$OVH_API"
|
_debug OVH_API "$OVH_API"
|
||||||
|
|
||||||
OVH_CK="${OVH_CK:-$(_readaccountconf_mutable OVH_CK)}"
|
OVH_CK="${OVH_CK:-$(_readaccountconf_mutable OVH_CK)}"
|
||||||
|
Loading…
Reference in New Issue
Block a user