fix format

This commit is contained in:
neil
2024-10-13 17:55:22 +02:00
parent 9b2eae24d2
commit e0381dd757
7 changed files with 7 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ _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