File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ process_domains() {
389
389
log " Classifying domains from: $input "
390
390
391
391
# Create all required directories and files
392
- mkdir -p " ${output_dir} " /{second,regional,other}
392
+ mkdir -p " ${output_dir} /{second,regional,other}"
393
393
394
394
local second_level=" ${output_dir} /second.txt"
395
395
local regional=" ${output_dir} /regional.txt"
@@ -414,7 +414,8 @@ process_domains() {
414
414
415
415
# First pass - find all second-level and regional domains
416
416
while IFS= read -r domain; do
417
- local parts; mapfile -t parts <<< " ${domain//./ }"
417
+ local parts
418
+ IFS=' .' read -ra parts <<< " $domain"
418
419
local levels=${# parts[@]}
419
420
420
421
# Limit to 4th level
@@ -443,7 +444,8 @@ process_domains() {
443
444
444
445
# Second pass - filter subdomains
445
446
while IFS= read -r domain; do
446
- local parts; mapfile -t parts <<< " ${domain//./ }"
447
+ local parts
448
+ IFS=' .' read -ra parts <<< " $domain"
447
449
local skip=false
448
450
449
451
# Skip already processed domains
You can’t perform that action at this time.
0 commit comments