Skip to content

Commit a9f1c83

Browse files
authored
Fix for CUSTOMIZED_SDK_URL path (#5948)
This update is a fix for CUSTOMIZED_SDK_URL path . The script adds "/" at the end if it is missing Update indentation in get.sh Fixes: #5947 Signed-off-by: Denny Chacko Jacob [email protected]
1 parent 774553b commit a9f1c83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

get.sh

+3
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ getBinaryOpenjdk()
212212
fi
213213

214214
if [ "$SDK_RESOURCE" == "nightly" ] && [ "$CUSTOMIZED_SDK_URL" != "" ]; then
215+
if [[ ! "${CUSTOMIZED_SDK_URL}" =~ /$ ]]; then
216+
CUSTOMIZED_SDK_URL="${CUSTOMIZED_SDK_URL}/"
217+
fi
215218
result=$(curl -k ${curl_options} ${CUSTOMIZED_SDK_URL} | grep ">[0-9]*\/<" | sed -e 's/[^0-9/ ]//g' | sed 's/\/.*$//')
216219
IFS=' ' read -r -a array <<< "$result"
217220
arr=(${result/ / })

0 commit comments

Comments
 (0)