Skip to content

Commit

Permalink
Fix magma_maintained server download path (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
farafonoff authored Dec 27, 2023
1 parent 6ac4586 commit 6b2bd0d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/start-deployMagmaMaintained
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ if [ -z $VERSION ]; then
exit 1
fi

if [ -z $FORGE_VERSION ]; then
log "ERROR the variable FORGE_VERSION is not specified"
exit 1
fi

if [ -z $MAGMA_MAINTAINED_TAG ]; then
log "ERROR the variable MAGMA_MAINTAINED_TAG is not specified"
exit 1
fi

downloadUrl="https://github.com/magmamaintained/Magma-${VERSION}/releases/download/${MAGMA_MAINTAINED_TAG}/magma-${VERSION}-${FORGE_VERSION}-${MAGMA_MAINTAINED_TAG}-server.jar"
# https://github.com/magmamaintained/Magma-1.12.2/releases/download/88659fb/Magma-1.12.2-88659fb-server.jar
downloadUrl="https://github.com/magmamaintained/Magma-${VERSION}/releases/download/${MAGMA_MAINTAINED_TAG}/magma-${VERSION}-${MAGMA_MAINTAINED_TAG}-server.jar"

if ! SERVER=$(get --output-filename --skip-up-to-date --output /data "$downloadUrl"); then
log "ERROR: failed to download Magma Maintained server jar from $downloadUrl"
Expand Down

0 comments on commit 6b2bd0d

Please sign in to comment.