mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:24:54 +00:00
Change from ((i++)) to i=$(_math $i + 1)
This commit is contained in:
parent
23a6ce2795
commit
ea8dfd4a3e
@ -81,8 +81,8 @@ 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
|
||||||
# this line will contain DNSdomainid for the top_domain
|
# this line will contain DNSdomainid for the top_domain
|
||||||
@ -213,8 +213,8 @@ 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#*>}
|
||||||
DNSname=${tmp%%<*}
|
DNSname=${tmp%%<*}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user