comparison 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
comparison
equal deleted inserted replaced
15:4391020b8ebd 16:1f999668080f
1 #!/bin/sh
2
3 set -e
4 set -u
5
6 PATH="${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
7
8 _outdir="$(dirname "${0}")"
9 _outfile="eu-daily.xml"
10
11 curl -s https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml \
12 > "${_outdir}/${_outfile}.new"
13
14 mv "${_outdir}/${_outfile}.new" "${_outdir}/${_outfile}"