Skip to content

Commit 3fbdb7a

Browse files
author
neil
committed
fix format
1 parent 2997a15 commit 3fbdb7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dnsapi/dns_fornex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ _get_root() {
8888

8989
i=1
9090
while true; do
91-
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
91+
h=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
9292
_debug h "$h"
9393
if [ -z "$h" ]; then
9494
#not valid

dnsapi/dns_zoneedit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ _zoneedit_api() {
100100

101101
# Execute request
102102
i=3 # Tries
103-
while [ $i -gt 0 ]; do
103+
while [ "$i" -gt 0 ]; do
104104
i=$(_math "$i" - 1)
105105

106106
if ! response=$(_get "$geturl"); then

0 commit comments

Comments
 (0)