Fix version number extraction for all cases 14/14114/1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 10 Jan 2019 01:03:11 +0000 (11:03 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 10 Jan 2019 01:16:14 +0000 (11:16 +1000)
commitf9e0c6aa3c19f8fc5c017f8a84e203d0d50d5b7f
tree17dd8803cdccb38d66c0ff6ebcd33a9b41a577bc
parentc9e5000a4fdfbb63543b543814e95a480f09f743
Fix version number extraction for all cases

When the jobs upgrade to a later version of Java passing
"openjdk11" or "openjdk10" the string substitution would only
return the last char which would potentially fail to pick up
the correct version of Java.

This change fixes this issue to handle all cases.

Change-Id: If81100bbdd116ee071c3ecdeeadc0a3016fa2a15
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
shell/update-java-alternatives.sh