mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-19 01:18:12 +00:00
Added support for Magma version tags (#2247)
This commit is contained in:
1 parent
56d68a6e76
commit
b89844d5b2
2 files changed
+6
-2
No files matched your search
@@ -4,9 +4,11 @@
|
||||
. "${SCRIPTS:-/}start-utils"
|
||||
isDebugging && set -x
|
||||
|
||||
: "${MAGMA_VERSION:=}"
|
||||
|
||||
resolveVersion
|
||||
|
||||
if ! downloadUrl=$(get --json-path '$.link' "https://api.magmafoundation.org/api/v2/${VERSION}/latest"); then
|
||||
if ! downloadUrl=$(get --json-path '$.link' "https://api.magmafoundation.org/api/v2/${VERSION}/latest/${MAGMA_VERSION}"); then
|
||||
log "ERROR failed to locate latest Magma download for ${VERSION}. Is that version supported?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user