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

Commit d3f595a

Browse files
committed
changes for the new Java 10 java -version formatting
1 parent a58b554 commit d3f595a

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
@@ -387,7 +387,7 @@ fi
387387
################################################################################
388388
function get_java_version_from_cmd() {
389389
# second sed command strips " and -ea from the version string
390-
echo $("$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"//g;s/-ea//g')
390+
echo $("$1" -version 2>&1 | awk '/version/{print $3}' | sed -E 's/"//g;s/-ea//g')
391391
}
392392

393393

0 commit comments

Comments
 (0)