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 376bd14 commit 9070c8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion parked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function check_for_unparked {

function check_for_parked {
[[ ! -f "$1" ]] && return # Return if split file not found
[[ "$1" == 'x00' ]] && { track=true; count=0; } # Track progress for first split file
[[ "$1" == 'x00' ]] && { track=true; count=0; } || track=false # Track progress for first split file
while read -r domain; do
((count++))
# Check for parked message in site's HTML
Expand Down
6 changes: 3 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ function test_parked {
# Test removal of parked domains
printf "github\n" >> "$parked_terms_file" # Sample parked term
# Input
printf "github.com\n" >> "$raw_file"
printf "tradexchange.online\n" >> "$raw_file"
printf "apple.com\n" >> "$raw_file"
# Expected output
printf "github.com\n" >> out_parked.txt
printf "tradexchange.online\n" >> out_parked.txt
printf "apple.com\n" >> out_raw.txt
printf "parked,github.com,raw\n" >> out_log.txt
printf "parked,tradexchange.online,raw\n" >> out_log.txt

# Test raw light file
cp "$raw_file" "$raw_light_file"
Expand Down

0 comments on commit 9070c8a

Please sign in to comment.