Mercurial > titip
annotate eu-update @ 19:6edd7351ed94
Update bni url
author | nanaya <me@nanaya.pro> |
---|---|
date | Wed, 12 Sep 2018 04:04:58 +0900 |
parents | 1f999668080f |
children |
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}" |