From a54cbf466c33f76f46f926bee76d2849f56b8808 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 4 Oct 2020 10:27:03 -0500 Subject: [PATCH] Fixed cleanup of temp restify error output file Fixes #98 --- bedrock-entry.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 1f4a1d7..7c4342d 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -35,7 +35,7 @@ case ${VERSION^^} in ;; LATEST) for a in data-bi-prtid data-platform; do - DOWNLOAD_URL=$(restify --attribute=${a}=serverBedrockLinux ${downloadPage} 2> /tmp/restify.out | jq -r '.[0].href' || echo '') + DOWNLOAD_URL=$(restify --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '') if [[ ${DOWNLOAD_URL} ]]; then break fi @@ -47,9 +47,11 @@ case ${VERSION^^} in echo "WARN Minecraft download page failed, so using existing download of $VERSION" else echo "Failed to extract download URL '${DOWNLOAD_URL}' from ${downloadPage}" - cat /tmp/restify.out + cat restify.err + rm restify.err exit 2 fi + rm restify.err ;; *) # use the given version exactly