[Mac OS] Remove 'LTS' suffix from OpenJDK version (#8751)

This commit is contained in:
Vasilii Polikarpov
2023-11-06 19:24:44 +01:00
committed by GitHub
parent da0af62e91
commit 98c6d29ec9

View File

@@ -40,6 +40,9 @@ installOpenJDK() {
archivePath=$(echo ${asset} | jq -r '.binary.package.link')
fullVersion=$(echo ${asset} | jq -r '.version.semver' | tr '+' '-')
# Remove 'LTS' suffix from the version if present
fullVersion="${fullVersion//.LTS/}"
JAVA_TOOLCACHE_PATH=${AGENT_TOOLSDIRECTORY}/Java_Temurin-Hotspot_jdk
javaToolcacheVersionPath=$JAVA_TOOLCACHE_PATH/${fullVersion}