From d099ae6965d5c456cf6ed6f2038e70d3d30c99e8 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 21 Apr 2021 22:13:20 +0000 Subject: [PATCH] Improve download_mcdata script --- download_mcdata.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) mode change 100644 => 100755 download_mcdata.sh diff --git a/download_mcdata.sh b/download_mcdata.sh old mode 100644 new mode 100755 index 8853328..cb01495 --- a/download_mcdata.sh +++ b/download_mcdata.sh @@ -1,10 +1,11 @@ #!/bin/sh +set -eu + VERSION="1.16.4" -wget -O/tmp/mcdata.zip https://apimon.de/mcdata/$VERSION/$VERSION.zip -rm -rf minecraft_data -mkdir minecraft_data -unzip /tmp/mcdata.zip -d minecraft_data -rm /tmp/mcdata.zip - +wget -Omcdata.zip "https://apimon.de/mcdata/$VERSION/$VERSION.zip" +rm -r mosfet/minecraft_data +mkdir mosfet/minecraft_data +unzip mcdata.zip -d mosfet/minecraft_data +rm mcdata.zip