Skip to content

Commit

Permalink
retrieve: exit if pipeline fails (set -e)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Jan 20, 2025
1 parent 2a31ecc commit 4c416d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/retrieve_domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ retrieve_source_results() {
fi

# Initialize source variables
local source_name=
local source_url=
local source_results=
local source_name=''
local source_url=''
local source_results=''
local ignore_from_light=false
local rate_limited=false
local query_count=
local query_count=''
local execution_time
execution_time="$(date +%s)"

Expand Down Expand Up @@ -942,6 +942,8 @@ source_vzhh() {

# Entry point

set -e

trap cleanup EXIT

$FUNCTION --format-all
Expand Down

0 comments on commit 4c416d6

Please sign in to comment.