]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Fix for SC2086.
authorRaidenII <ttzforj@hotmail.com>
Mon, 3 Jul 2017 12:22:16 +0000 (08:22 -0400)
committerRaidenII <ttzforj@hotmail.com>
Mon, 3 Jul 2017 12:22:16 +0000 (08:22 -0400)
dnsapi/dns_namecom.sh

index fae56d65ac88f264559163eade95b981853c6e52..3af8bf4ce72406dcf53f19d8f2715631f673a628 100755 (executable)
@@ -174,7 +174,7 @@ _namecom_get_root() {
 
   # Need to exclude the last field (tld)
   numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
-  while [ $i -le $numfields ]; do
+  while [ $i -le "$numfields" ]; do
     host=$(printf "%s" "$domain" | cut -d . -f $i-100)
     _debug host "$host"
     if [ -z "$host" ]; then