view eu-update @ 19:6edd7351ed94

Update bni url
author nanaya <me@nanaya.pro>
date Wed, 12 Sep 2018 04:04:58 +0900
parents 1f999668080f
children
line wrap: on
line source

#!/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}"