Skip to content

Commit 98c6d29

Browse files
[Mac OS] Remove 'LTS' suffix from OpenJDK version (#8751)
1 parent da0af62 commit 98c6d29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

images/macos/provision/core/openjdk.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ installOpenJDK() {
4040
archivePath=$(echo ${asset} | jq -r '.binary.package.link')
4141
fullVersion=$(echo ${asset} | jq -r '.version.semver' | tr '+' '-')
4242

43+
# Remove 'LTS' suffix from the version if present
44+
fullVersion="${fullVersion//.LTS/}"
45+
4346
JAVA_TOOLCACHE_PATH=${AGENT_TOOLSDIRECTORY}/Java_Temurin-Hotspot_jdk
4447
javaToolcacheVersionPath=$JAVA_TOOLCACHE_PATH/${fullVersion}
4548

0 commit comments

Comments
 (0)