commit db3af5dc8aaf443d0c3a15a7b855f10839c8ccb7 parent 8a4bd49b0c3a1c3d6f9782c43eb6ee421977b6d5 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 1 Oct 2018 10:13:48 +0200 Store zip file in PWD Diffstat:
M | links/bin/jupiter-download.sh | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/links/bin/jupiter-download.sh b/links/bin/jupiter-download.sh @@ -2,9 +2,11 @@ set -e url="http://gerda.geus.dk/Gerda/exportfiles/?filename=pcjupiterxlpluspg_xl.zip" -ziptarget=$(mktemp) +date="$(date +%Y%m%d)" +basename="pcjupiterxlpluspg_xl" +ziptarget="${basename}_${date}.zip" curl "$url" -o "$ziptarget" unzip "$ziptarget" -d . -mv pcjuptierxlpluspg_xl{,"_$(date +%Y%m%d)"}.backup +mv pcjuptierxlpluspg_xl{,"_${date}"}.backup