Change from ((i++)) to i=$(_math $i + 1)

This commit is contained in:
David Kerr 2017-01-29 00:05:59 -05:00
parent 23a6ce2795
commit ea8dfd4a3e

View File

@ -81,7 +81,7 @@ dns_freedns_add() {
i=0
found=0
while [ $i -lt $lines ]; do
((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" "<td>$top_domain"; then
@ -213,7 +213,7 @@ dns_freedns_rm() {
i=0
found=0
while [ $i -lt $lines ]; do
((i++))
i=$(_math $i + 1 )
line="$(echo "$subdomain_csv" | cut -d "$nl" -f $i)"
dns_href="$(echo "$line" | cut -d ',' -f 2)"
tmp=${dns_href#*>}