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

Commit b01c6e7

Browse files
committed
bugfix for 3-digit java release/build numbers (e.g. for 1.8.0_101) // fixes #36
1 parent 920a7df commit b01c6e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/universalJavaApplicationStub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# #
1414
# @author Tobias Fischer #
1515
# @url https://github.com/tofi86/universalJavaApplicationStub #
16-
# @date 2016-07-05 #
16+
# @date 2016-08-26 #
1717
# @version 1.0.1 #
1818
# #
1919
# #
@@ -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_.]{5}"/\1/g'`
332+
echo `"$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"([0-9.]{3})[0-9_.]{6}"/\1/g'`
333333
}
334334

335335

0 commit comments

Comments
 (0)