diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eu-update	Fri Jun 08 22:11:01 2018 +0900
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+set -u
+
+PATH="${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
+
+_outdir="$(dirname "${0}")"
+_outfile="eu-daily.xml"
+
+curl -s https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml \
+  > "${_outdir}/${_outfile}.new"
+
+mv "${_outdir}/${_outfile}.new" "${_outdir}/${_outfile}"