Mercurial > titip
annotate eu-update @ 16:1f999668080f
Migrate to eu central bank data and use local jquery
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 08 Jun 2018 22:11:01 +0900 |
parents | |
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}" |