Browse Source

Fix Travis CI errors.

pull/1343/head
David Kerr 7 years ago
parent
commit
62dd3a5380
  1. 4
      dnsapi/dns_freedns.sh

4
dnsapi/dns_freedns.sh

@ -90,13 +90,13 @@ dns_freedns_add() {
while [ "$i" -lt "$lines" ]; do while [ "$i" -lt "$lines" ]; do
i="$(_math "$i" + 1)" i="$(_math "$i" + 1)"
line="$(echo "$subdomain_csv" | sed -n "${i}p")" line="$(echo "$subdomain_csv" | sed -n "${i}p")"
_debug2 "line $line"
_debug2 "line: $line"
if [ $found = 0 ] && _contains "$line" "<td>$top_domain</td>"; then if [ $found = 0 ] && _contains "$line" "<td>$top_domain</td>"; then
# this line will contain DNSdomainid for the top_domain # this line will contain DNSdomainid for the top_domain
DNSdomainid="$(echo "$line" | _egrep_o "edit_domain_id *= *.*>" | cut -d = -f 2 | cut -d '>' -f 1)" DNSdomainid="$(echo "$line" | _egrep_o "edit_domain_id *= *.*>" | cut -d = -f 2 | cut -d '>' -f 1)"
_debug2 "DNSdomainid: $DNSdomainid" _debug2 "DNSdomainid: $DNSdomainid"
found=1 found=1
break;
break
fi fi
done done

Loading…
Cancel
Save