Skip to content

Commit

Permalink
Don't save files that error'd on download
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmech committed Dec 1, 2024
1 parent 9653277 commit 5d8aaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/get-data.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -eo pipefail

DOWNLOAD_PATH=$PWD/downloaded

Expand All @@ -23,7 +23,7 @@ while true; do
OUTPUT_FUELWATCH=$DOWNLOAD_PATH/$FILENAME

if [ ! -f $OUTPUT_FUELWATCH ]; then
curl -sL "${FUELWATCH_URL_BASE}${FILENAME}" -o $DOWNLOAD_PATH/$FILENAME
curl -f -sL "${FUELWATCH_URL_BASE}${FILENAME}" -o $DOWNLOAD_PATH/$FILENAME
fi
let COUNTER="COUNTER + 1"
if [ $COUNTER -gt $BACKFILL_MONTHS ]; then
Expand Down

0 comments on commit 5d8aaa4

Please sign in to comment.