Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
neil committed Oct 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9b2eae2 commit e0381dd
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dnsapi/dns_bunny.sh
Original file line number Diff line number Diff line change
@@ -222,7 +222,7 @@ _get_base_domain() {
done

if [ -z "$found" ]; then
page=$(_math $page + 1)
page=$(_math "$page" + 1)
nextpage="https://api.bunny.net/dnszone?page=$page"
## Find the next page if we don't have a match.
hasnextpage="$(echo "$domain_list" | _egrep_o "\"HasMoreItems\"\s*:\s*true")"
4 changes: 2 additions & 2 deletions dnsapi/dns_miab.sh
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ _get_root() {
#cycle through the passed domain seperating out a test domain discarding
# the subdomain by marching thorugh the dots
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"

if [ -z "$_test_domain" ]; then
@@ -123,7 +123,7 @@ _get_root() {
#report found if the test domain is in the json response and
# report the subdomain
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}
return 0
fi
2 changes: 1 addition & 1 deletion dnsapi/dns_namecheap.sh
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ _get_root_by_getHosts() {
i=100
p=99

while [ $p -ne 0 ]; do
while [ "$p" -ne 0 ]; do

h=$(printf "%s" "$1" | cut -d . -f "$i"-100)
if [ -n "$h" ]; then
2 changes: 1 addition & 1 deletion dnsapi/dns_namecom.sh
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ _namecom_get_root() {

# Need to exclude the last field (tld)
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)
_debug host "$host"
if [ -z "$host" ]; then
2 changes: 1 addition & 1 deletion dnsapi/dns_namesilo.sh
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ _get_root() {

# Need to exclude the last field (tld)
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)
_debug host "$host"
if [ -z "$host" ]; then
2 changes: 0 additions & 2 deletions dnsapi/dns_netlify.sh
Original file line number Diff line number Diff line change
@@ -55,8 +55,6 @@ dns_netlify_add() {
return 1
fi

_err "Not fully implemented!"
return 1
}

#Usage: dns_myapi_rm _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
2 changes: 1 addition & 1 deletion dnsapi/dns_ovh.sh
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ _initAuth() {
_saveaccountconf_mutable OVH_END_POINT "$OVH_END_POINT"
fi

OVH_API="$(_ovh_get_api $OVH_END_POINT)"
OVH_API="$(_ovh_get_api "$OVH_END_POINT")"
_debug OVH_API "$OVH_API"

OVH_CK="${OVH_CK:-$(_readaccountconf_mutable OVH_CK)}"

0 comments on commit e0381dd

Please sign in to comment.