Improve download_mcdata script

This commit is contained in:
Tanner Collin 2021-04-21 22:13:20 +00:00
parent 3c373ccfe3
commit d099ae6965

13
download_mcdata.sh Normal file → Executable file
View File

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
set -eu
VERSION="1.16.4" VERSION="1.16.4"
wget -O/tmp/mcdata.zip https://apimon.de/mcdata/$VERSION/$VERSION.zip wget -Omcdata.zip "https://apimon.de/mcdata/$VERSION/$VERSION.zip"
rm -rf minecraft_data rm -r mosfet/minecraft_data
mkdir minecraft_data mkdir mosfet/minecraft_data
unzip /tmp/mcdata.zip -d minecraft_data unzip mcdata.zip -d mosfet/minecraft_data
rm /tmp/mcdata.zip rm mcdata.zip