annotate eu-update @ 17:9c94b49fe83c

Update email
author nanaya <me@nanaya.pro>
date Fri, 08 Jun 2018 22:25:21 +0900
parents 1f999668080f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
1 #!/bin/sh
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
2
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
3 set -e
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
4 set -u
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
5
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
6 PATH="${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
7
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
8 _outdir="$(dirname "${0}")"
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
9 _outfile="eu-daily.xml"
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
10
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
11 curl -s https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml \
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
12 > "${_outdir}/${_outfile}.new"
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
13
1f999668080f Migrate to eu central bank data and use local jquery
nanaya <me@nanaya.pro>
parents:
diff changeset
14 mv "${_outdir}/${_outfile}.new" "${_outdir}/${_outfile}"