Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Mar 28, 2024
1 parent c0f5c63 commit 5d5f232
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 1,172 deletions.
8 changes: 3 additions & 5 deletions data/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ function check_for_parked {
fi
((count++))
done < "$1"
if [[ -f "parked_domains_${1}.tmp" ]]; then
cat "parked_domains_${1}.tmp" >> "$parked_domains_file"
rm "$1"
rm "parked_domains_${1}.tmp"
fi
[[ -f "parked_domains_${1}.tmp" ]] && { cat "parked_domains_${1}.tmp" >> "$parked_domains_file";
rm "parked_domains_${1}.tmp"; }
rm "$1"
}

[[ "$1" == 'format' ]] && format "$2"
Expand Down
2 changes: 1 addition & 1 deletion dead.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function check_for_alive {
sed 's/^/||/; s/$/^/' "$dead_domains_file" > formatted_dead_domains_file.tmp # Format dead domains file

# Process in 4 parallel runs
split -n 6 -d formatted_dead_domains_file.tmp
split -n 4 -d formatted_dead_domains_file.tmp
dead-domains-linter -i x00 --export x00.tmp & dead-domains-linter -i x01 --export x01.tmp &
dead-domains-linter -i x02 --export x02.tmp & dead-domains-linter -i x03 --export x03.tmp
cat x*.tmp >> dead.tmp
Expand Down
154 changes: 0 additions & 154 deletions x00

This file was deleted.

161 changes: 0 additions & 161 deletions x01

This file was deleted.

Loading

0 comments on commit 5d5f232

Please sign in to comment.