Fail early in update script
This commit is contained in:
parent
ae949a21fe
commit
4d78e9330c
1 changed files with 1 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# set -ex
|
# set -ex
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
cd $(dirname $0) && \
|
cd $(dirname $0) && \
|
||||||
curl -fsS 'https://covid-19.datasettes.com/covid.csv?sql=select+day%2C+last_update%2C+sum(deaths)+sum_deaths%0D%0Afrom+johns_hopkins_csse_daily_reports%0D%0Awhere+country_or_region+not+like+%27%25Olympics%25%27%0D%0Agroup+by+day%0D%0Aorder+by+day+desc%0D%0Alimit+7%0D%0A&_header=off' > covid_deaths.csv && \
|
curl -fsS 'https://covid-19.datasettes.com/covid.csv?sql=select+day%2C+last_update%2C+sum(deaths)+sum_deaths%0D%0Afrom+johns_hopkins_csse_daily_reports%0D%0Awhere+country_or_region+not+like+%27%25Olympics%25%27%0D%0Agroup+by+day%0D%0Aorder+by+day+desc%0D%0Alimit+7%0D%0A&_header=off' > covid_deaths.csv && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue