Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit c5cbbf1

Browse files
committed
bugfix for 3-digit java release/build numbers (e.g. for 1.8.0_101) // refs #36
2nd fix, catching 2 and 3 digit build numbers. 1st fix did catch 3 digit build numbers only… 😔
1 parent b01c6e7 commit c5cbbf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/universalJavaApplicationStub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function JavaVersionSatisfiesRequirement() {
329329
############################################
330330

331331
function extractJavaMajorVersion() {
332-
echo `"$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"([0-9.]{3})[0-9_.]{6}"/\1/g'`
332+
echo `"$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"([0-9.]{3})[0-9_.]{5,6}"/\1/g'`
333333
}
334334

335335

0 commit comments

Comments
 (0)