Browse Source

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

pull/557/head
David Kerr 8 years ago
parent
commit
ea8dfd4a3e
  1. 4
      dnsapi/dns_freedns.sh

4
dnsapi/dns_freedns.sh

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

Loading…
Cancel
Save