Skip to content

Commit

Permalink
Limit the number of retries that wget will do
Browse files Browse the repository at this point in the history
  • Loading branch information
sacundim committed Jul 14, 2022
1 parent 6b30da2 commit 275ce95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/bioportal-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ mkdir -p "${TMP}"

echo "$(date): Fetching from endpoint: ${DEATHS_ENDPOINT}"
wget \
--tries=3 \
--no-verbose \
--header="Accept-Encoding: gzip" \
-O - "${DEATHS_ENDPOINT}" \
Expand All @@ -55,6 +56,7 @@ echo "$(date): Downloaded to ${DEATHS_JSON_TMP}"

echo "$(date): Fetching from endpoint: ${TESTS_ENDPOINT}"
wget \
--tries=3 \
--no-verbose \
--header="Accept-Encoding: gzip" \
-O - "${TESTS_ENDPOINT}" \
Expand All @@ -65,6 +67,7 @@ echo "$(date): Downloaded to ${TESTS_JSON_TMP}"

echo "$(date): Fetching from endpoint: ${ORDERS_ENDPOINT}"
wget \
--tries=3 \
--no-verbose \
--header="Accept-Encoding: gzip" \
-O - "${ORDERS_ENDPOINT}" \
Expand Down

0 comments on commit 275ce95

Please sign in to comment.