diff --git a/dnsapi/dns_freedns.sh b/dnsapi/dns_freedns.sh index 6c19fba9..c41218e1 100755 --- a/dnsapi/dns_freedns.sh +++ b/dnsapi/dns_freedns.sh @@ -81,8 +81,8 @@ dns_freedns_add() { i=0 found=0 while [ $i -lt $lines ]; do - ((i++)) - line="$(echo "$subdomain_csv" | cut -d "$nl" -f $i)" + i=$(_math $i + 1 ) + line="$(echo "$subdomain_csv" | cut -d "$nl" -f $i)" tmp="$(echo "$line" | cut -d ',' -f 1)" if [ $found = 0 ] && _startswith "$tmp" "