Include NMS download script
All checks were successful
/ build (push) Successful in 52s

This commit is contained in:
Minecon724 2025-05-31 13:46:33 +02:00
commit a45772ab79
Signed by: Minecon724
GPG key ID: A02E6E67AB961189

14
tools/download_nms.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
FILENAME=nms_1_21_1+3+4+5.tar.zst
CHECKSUM=0ea6267ce39213ddb0d6a7669d8021283350bb56de0d65f2e9fddd3c85337c5fbd204272b07c7e8532c6eaef46c3a47a39bac183abd6f4cfa7b171e08b4d7029
curl -O https://36ab09b1.m724.eu/$FILENAME
if [ "$(sha512sum $FILENAME)" = "$CHECKSUM $FILENAME" ]; then
tar -xaf $FILENAME -C "$1"
rm $FILENAME
else
echo "Checksum invalid"
rm $FILENAME
exit 1
fi