1 parent
268b5f94e1
commit
a54cbf466c
1 file changed
+4
-2
+4
-2
@@ -35,7 +35,7 @@ case ${VERSION^^} in
|
|||||||
;;
|
;;
|
||||||
LATEST)
|
LATEST)
|
||||||
for a in data-bi-prtid data-platform; do
|
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
|
if [[ ${DOWNLOAD_URL} ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -47,9 +47,11 @@ case ${VERSION^^} in
|
|||||||
echo "WARN Minecraft download page failed, so using existing download of $VERSION"
|
echo "WARN Minecraft download page failed, so using existing download of $VERSION"
|
||||||
else
|
else
|
||||||
echo "Failed to extract download URL '${DOWNLOAD_URL}' from ${downloadPage}"
|
echo "Failed to extract download URL '${DOWNLOAD_URL}' from ${downloadPage}"
|
||||||
cat /tmp/restify.out
|
cat restify.err
|
||||||
|
rm restify.err
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
rm restify.err
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# use the given version exactly
|
# use the given version exactly
|
||||||
|
|||||||
Reference in new issue
Block a user