Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 2, 2024
1 parent 242690d commit 71a1c91
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions functions/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,14 @@ test_unparked_check() {
printf "unparked,google.com,parked_domains\n" >> out_log.txt
}

# Function 'on_exit' exits the script with exit status 1 if an error was found.
on_exit() {
if [[ "$error" == true ]]; then
printf "\n"
exit 1
fi
}

# Function 'run_script' executes the script passed by the caller.
# Input:
# $1: scrip to execute
Expand Down Expand Up @@ -631,14 +639,6 @@ check_and_exit() {
on_exit
}

# Function 'on_exit' exits the script with exit status 1 if an error was found.
on_exit() {
if [[ "$error" == true ]]; then
printf "\n"
exit 1
fi
}

# Function 'check_terms' checks that a file contains all the given terms.
# Input:
# $1: file to check
Expand Down

0 comments on commit 71a1c91

Please sign in to comment.