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 841757d commit 117eea1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions parked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ function add_unparked_domains {
format_list "$raw_file"
log_event "$(<unparked_domains.tmp)" "unparked" "parked_domains_file"

find . -maxdepth 1 -type f -name "x??" -delete
find . -maxdepth 1 -type f -name "*.tmp" -delete
find . -maxdepth 1 -type f -name "x??" -delete # Reset split files before next run
}

function remove_parked_domains {
Expand All @@ -64,8 +63,7 @@ function remove_parked_domains {
format_list "$parked_domains_file"
log_event "$(<parked_domains.tmp)" "parked" "raw"

find . -maxdepth 1 -type f -name "x??" -delete
find . -maxdepth 1 -type f -name "*.tmp" -delete
find . -maxdepth 1 -type f -name "x??" -delete # Reset split files
}

function check_for_unparked {
Expand Down Expand Up @@ -123,5 +121,5 @@ function cleanup {
find . -maxdepth 1 -type f -name "*.tmp" -delete
}

#trap cleanup EXIT
trap cleanup EXIT
main

0 comments on commit 117eea1

Please sign in to comment.