diff --git a/minecraft/paper/create.sh b/minecraft/paper/create.sh index 7e6803e..6b22d5e 100755 --- a/minecraft/paper/create.sh +++ b/minecraft/paper/create.sh @@ -1,7 +1,7 @@ -#!/bin/zsh +#!/bin/sh if [[ -z $VERSION ]] ; -then - VERSION=$(curl https://api.papermc.io/v2/projects/paper | \ - jq -r .versions[-1]); +then + VERSION=$(curl https://api.papermc.io/v2/projects/paper | jq -r .versions\[-1\]); fi; -docker build -t minecraft:paper-${VERSION} . --build-arg VERSION=${VERSION} +docker build -t "minecraft:paper-$VERSION" . --build-arg VERSION=$VERSION +echo version=$VERSION