commit 8a4bd49b0c3a1c3d6f9782c43eb6ee421977b6d5 parent 8f463abe4f72d067b3b99f2b6cc82b7dbda22ea6 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 1 Oct 2018 09:19:44 +0200 Add jupiter-download script Diffstat:
A | links/bin/jupiter-download.sh | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/links/bin/jupiter-download.sh b/links/bin/jupiter-download.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -e + +url="http://gerda.geus.dk/Gerda/exportfiles/?filename=pcjupiterxlpluspg_xl.zip" +ziptarget=$(mktemp) + +curl "$url" -o "$ziptarget" +unzip "$ziptarget" -d . + +mv pcjuptierxlpluspg_xl{,"_$(date +%Y%m%d)"}.backup