From 03a27ca659e8b9e9448f33e4bcb7ebc852b9a53e Mon Sep 17 00:00:00 2001 From: Hyatt Date: Sun, 28 Nov 2021 00:03:50 +0000 Subject: [PATCH] Update 'build-minecraft.jenkins' --- build-minecraft.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-minecraft.jenkins b/build-minecraft.jenkins index ec1fdad..550ba06 100644 --- a/build-minecraft.jenkins +++ b/build-minecraft.jenkins @@ -70,9 +70,9 @@ RUN sed -i -r -e 's/v3.14\\/community/edge\\/community/' /etc/apk/repositories & apk add --no-cache ${alpineJavaPackage} curl && \\ addgroup -S -g 1000 minecraft && \\ adduser -S minecraft -G minecraft -h /minecraft -u 1000 && \\ - paperBuild=$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion} | jq '.builds | max') && \\ - paperFile=$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/${paperBuild} | jq '.downloads.application.name') && \\ - paperDownload="https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/${paperBuild}/downloads/${paperFile}" && \\ + paperBuild=\$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion} | jq '.builds | max') && \\ + paperFile=\$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/\${paperBuild} | jq '.downloads.application.name') && \\ + paperDownload="https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/\${paperBuild}/downloads/\${paperFile}" && \\ curl --location --fail --silent ${paperDownload} -o /minecraft/paper-mc.jar && \\ mkdir /minecraft/data && \\ mkdir /minecraft/html && \\