Skip to content

Commit af8c31d

Browse files
authored
fix: Dragonwell builds fail due to incorrect version (#2890)
* fix: Dragonwell builds fail due to incorrect version - to handle version in format e.g 11.0.14.10.0-GA
1 parent c4b532d commit af8c31d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sbin/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ getOpenJdkVersion() {
163163
else
164164
local minorNum="$(cut -d'.' -f 2 <"${dragonwellVerFile}")"
165165
local updateNum="$(cut -d'.' -f 3 <"${dragonwellVerFile}")"
166-
local buildNum="$(cut -d'.' -f 5 <"${dragonwellVerFile}")"
166+
# special handling for dragonwell version
167+
local buildNum="$(cut -d'.' -f 5 <"${dragonwellVerFile}" | cut -d'-' -f 1)"
167168
version="jdk-11.${minorNum}.${updateNum}+${buildNum}"
168169
fi
169170
else

0 commit comments

Comments
 (0)