updates to version handleing
This commit is contained in:
12
testing/test.sh
Executable file
12
testing/test.sh
Executable 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
|
||||
Reference in New Issue
Block a user