Browse Source

Fix for SC2086.

RaidenII 7 years ago
parent
commit
7b32bbfc26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_namecom.sh

+ 1 - 1
dnsapi/dns_namecom.sh

@@ -174,7 +174,7 @@ _namecom_get_root() {
 
 
   # Need to exclude the last field (tld)
   # Need to exclude the last field (tld)
   numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
   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)
     host=$(printf "%s" "$domain" | cut -d . -f $i-100)
     _debug host "$host"
     _debug host "$host"
     if [ -z "$host" ]; then
     if [ -z "$host" ]; then