mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-03 23:44:16 +00:00
Changed handling of unrecognized VERSION and detect absent server in meta json
For #590
This commit is contained in:
+1
-4
@@ -71,11 +71,8 @@ case "X$VERSION" in
|
||||
XSNAPSHOT|Xsnapshot)
|
||||
VANILLA_VERSION=$(curl -fsSL $VERSIONS_JSON | jq -r '.latest.snapshot')
|
||||
;;
|
||||
X[1-9]*)
|
||||
VANILLA_VERSION=$VERSION
|
||||
;;
|
||||
*)
|
||||
VANILLA_VERSION=$(curl -fsSL $VERSIONS_JSON | jq -r '.latest.release')
|
||||
VANILLA_VERSION=$VERSION
|
||||
;;
|
||||
esac
|
||||
export VANILLA_VERSION
|
||||
|
||||
Reference in New Issue
Block a user