Update Java version check in installMavenCentOS.sh 74/102874/2
authornathan.ellsworth <nathan@ellsworthzoo.com>
Wed, 26 Oct 2022 06:05:15 +0000 (01:05 -0500)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 26 Oct 2022 09:08:26 +0000 (11:08 +0200)
commit246d6efc4cd7e93796ef8d02388080d74f11530f
tree35ed1dba2325fd17e7d3840bb0a367e30eced270
parent48273254eda4961f8be2198bce3f65d315cc193b
Update Java version check in installMavenCentOS.sh

Java version strings are of the form XX.YY.ZZ
For Java 8 and earlier, XX was always 1 and YY was major version number.
For Java 9 and later, XX is the major version number

OpenDaylight versions that supported Java 8 are now all EOL
and there is no more reason to check YY content.
- update installMavenCentOS.sh to retrieve only the XX parameter
- update shebang to /bin/sh since we are in the area

JIRA: TRNSPRTPCE-700
Change-Id: Id0cff27763d48be773286f1c1a8312bb50e52523
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
tests/installMavenCentOS.sh