updates to version handleing

This commit is contained in:
2023-11-10 15:27:54 -08:00
parent c5081b455e
commit db531cd69d
7 changed files with 18 additions and 10 deletions

12
testing/test.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (c) 2023 fithwum
# All rights reserved
#MC_VERSION="1.14.4"
#VERSION_CHECK=$(curl -s "https://www.teamspeak.com/versions/server.json" | grep -Pom 1 '"version": "\K[^"]*')
MC_SERVER_FILE=$(curl -s "https://www.teamspeak.com/versions/server.json" | jq --raw-output '.linux.x86.version')
echo "Server url: $MC_SERVER_FILE"
#wget --no-cache ${MC_SERVER_FILE} -O /mnt/Other/Dockers/minecraft/testing/server-${MC_VERSION}.jar