Skip to content

Commit

Permalink
Fix for CUSTOMIZED_SDK_URL path (#5948)
Browse files Browse the repository at this point in the history
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 denny.cjacob@ibm.com
  • Loading branch information
dennycjacob authored Feb 12, 2025
1 parent 774553b commit a9f1c83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ getBinaryOpenjdk()
fi

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

0 comments on commit a9f1c83

Please sign in to comment.