domainfind: Remove stripped TLD from desired word

This commit is contained in:
Salt 2020-02-23 01:46:29 -06:00
parent 75e87025ad
commit a633f3d8fa

View File

@ -87,7 +87,7 @@ checkavaildomains() {
! [[ $word == *$tldstrip ]] && continue
[[ $word == $tldstrip ]] && continue # Ignore the tld itself
log "Processing word: $word" 2
prefix="${word%$tld}"
prefix="${word%$tldstrip}"
fqdn="$prefix.$tld"
log "Looking for domain: $fqdn" 2
# We wait here so a ^C kills our program, not nslookup