mc: for TYPE=PAPER use resolved version

Part of #326
This commit is contained in:
Geoff Bourne 2019-05-26 11:16:00 -05:00
parent 0ca336505d
commit 1148aa3fe3

View File

@ -2,8 +2,8 @@
export SERVER=paper_server.jar
if [ ! -f $SERVER ]; then
downloadUrl=${PAPER_DOWNLOAD_URL:-https://papermc.io/api/v1/paper/${VERSION}/latest/download}
echo "Downloading Paper $VERSION from $downloadUrl ..."
downloadUrl=${PAPER_DOWNLOAD_URL:-https://papermc.io/api/v1/paper/${VANILLA_VERSION}/latest/download}
echo "Downloading Paper $VANILLA_VERSION from $downloadUrl ..."
curl -fsSL -o $SERVER "$downloadUrl"
if [ ! -f $SERVER ]; then
echo "ERROR: failed to download from $downloadUrl (status=$?)"