Skip to content

Commit

Permalink
build script: tweak download command
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jan 17, 2024
1 parent 313ffce commit 416a270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ cd $(dirname $0)
base_url='https://vbb-gtfs.jannisr.de/latest/'
# todo: use https://gist.github.com/derhuerst/745cf09fe5f3ea2569948dd215bbfe1a ?
download () {
curl -L --compressed --etag-compare "$1.etag" --etag-save "$1.etag" "$base_url$1" -o "$1"
curl -fsSL --compressed -H 'User-Agent: derhuerst/vbb-stations build' \
--etag-compare "$1.etag" --etag-save "$1.etag" \
"$base_url$1" -o "$1"
}

download 'stops.csv'
Expand Down

0 comments on commit 416a270

Please sign in to comment.