From 2ae1d28f45cf36cfd81797216eb4241dda3f0134 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Thu, 28 Dec 2023 01:08:12 +0200 Subject: [PATCH] removed the need for password for user --- minecraft/paper/create.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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