Skip to content
Snippets Groups Projects
Commit b03221bf authored by juanf's avatar juanf
Browse files

SSDM-1805 : Ensure correct detection on linux

SVN: 34005
parent cf0562dc
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ else
fi
if [[ "$_java" ]]; then
version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}'| cut -c1 -c2 -c3)
version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}'| cut -c1-3)
if [[ "$version" > "1.6" ]]; then
echo Java version $version found.
else
......
......@@ -10,7 +10,7 @@ else
fi
if [[ "$_java" ]]; then
version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}'| cut -c1 -c2 -c3)
version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}'| cut -c1-3)
if [[ "$version" > "1.6" ]]; then
echo Java version $version found.
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment