Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 1, 2024
1 parent 6b923c7 commit b329eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion functions/check_parked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ remove_parked_domains() {
retrieve_parked "$RAW" || return

# Remove parked domains from raw file
comm -23 "$RAW" parked_domains.tmp > raw.tmp
# parked_domains.tmp occasionally is not in sorted order
comm -23 "$RAW" <(sort parked_domains.tmp) > raw.tmp
mv raw.tmp "$RAW"

log_event "$(<parked_domains.tmp)" parked raw
Expand Down
2 changes: 1 addition & 1 deletion functions/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function TEST_PARKED_CHECK {
# Placeholders used as sample data
# (split does not work well without enough records)
not_parked_placeholder=$(head -n 50 "$TOPLIST")
parked_placeholder=$(head -n 50 "$PARKED_DOMAINS")
parked_placeholder=$(tail -n 50 "$TOPLIST")
printf "%s\n" "$not_parked_placeholder" >> "$RAW"
printf "%s\n" "$parked_placeholder" >> "$PARKED_DOMAINS"
# Collate placeholders to be removed later
Expand Down

0 comments on commit b329eb8

Please sign in to comment.