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

Commit b0b0250

Browse files
committed
tests
1 parent d3f595a commit b0b0250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/java-version-tester.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Tests for the functions used in universalJavaApplicationStub script
4-
# tofi86 @ 2018-03-10
4+
# tofi86 @ 2018-07-29
55

66

77

@@ -15,7 +15,7 @@
1515
################################################################################
1616
function get_java_version_from_cmd() {
1717
# second sed command strips " and -ea from the version string
18-
echo $("$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"//g;s/-ea//g')
18+
echo $("$1" -version 2>&1 | awk '/version/{print $3}' | sed -E 's/"//g;s/-ea//g')
1919
}
2020

2121

0 commit comments

Comments
 (0)