We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406ac6d commit c738466Copy full SHA for c738466
bedrock-entry.sh
@@ -23,8 +23,7 @@ function replace_version_in_url() {
23
24
function lookupVersion() {
25
platform=${1:?Missing required platform indicator}
26
- # TODO need to find out API call to lookup custom version
27
- # customVersion=${2:-}
+ customVersion=${2:-}
28
29
DOWNLOAD_URL=$(
30
curl -fsSL "${getUrlPage}" |
@@ -48,6 +47,11 @@ function lookupVersion() {
48
47
'
49
)
50
+ if [[ -n "${customVersion}" && -n "${DOWNLOAD_URL}" ]]; then
51
+ DOWNLOAD_URL=$(replace_version_in_url "${DOWNLOAD_URL}" "${customVersion}")
52
+ return
53
+ fi
54
+
55
# shellcheck disable=SC2012
56
if [[ ${DOWNLOAD_URL} =~ http.*/.*-(.*)\.zip ]]; then
57
VERSION=${BASH_REMATCH[1]}
0 commit comments