Skip to content

Commit 5d6f3cc

Browse files
committed
patch: handle custom version with PREVIEW=true
Old behavior: custom version only supported versioning for non-preview releases. New behavior: custom version can look up custom preview versions and custom release versions based on the value of the PREVIEW flag.
1 parent 7a27256 commit 5d6f3cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bedrock-entry.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,13 @@ case ${VERSION^^} in
9292
;;
9393
*)
9494
# use the given version exactly
95-
echo "Using given version ${VERSION}"
96-
lookupVersion serverBedrockLinux "${VERSION}"
95+
if isTrue "$PREVIEW"; then
96+
echo "Using given preview version ${VERSION}"
97+
lookupVersion serverBedrockPreviewLinux "${VERSION}"
98+
else
99+
echo "Using given version ${VERSION}"
100+
lookupVersion serverBedrockLinux "${VERSION}"
101+
fi
97102
;;
98103
esac
99104

0 commit comments

Comments
 (0)