Update Java version check in installMavenCentOS.sh 35/102635/1
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 10:40:57 +0000 (10:40 +0000)
commit814186687734de7a71908e3522aa7497ef8d045d
treedb19d33adad595f65470dc1091e9483348be8079
parent30a762c2f8612bbaa9aec79b6105702319e5f993
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>
(cherry picked from commit 246d6efc4cd7e93796ef8d02388080d74f11530f)
tests/installMavenCentOS.sh