This commit is contained in:
2023-11-10 14:34:50 -08:00
parent f31f08c7db
commit e17cfa6cfb
2 changed files with 9 additions and 9 deletions

View File

@@ -5,8 +5,8 @@
MC_VERSION="1.14.4"
VERSION_CHECK=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json" | grep -Pom 1 '"url": "\K[^"]*'$MC_VERSION'.json')
SERVER_FILE=$(curl -s $VERSION_CHECK | jq --raw-output '.downloads.server.url')
MC_SERVER_FILE=$(curl -s $VERSION_CHECK | jq --raw-output '.downloads.server.url')
echo "Server url: $SERVER_FILE"
echo "Server url: $MC_SERVER_FILE"
wget --no-cache ${SERVER_FILE} -O /mnt/Other/Dockers/minecraft/testing/server-${MC_VERSION}.jar
wget --no-cache ${MC_SERVER_FILE} -O /mnt/Other/Dockers/minecraft/testing/server-${MC_VERSION}.jar