From f75c1cf32477b6f606c0ddcb00ed192145a754e6 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Sun, 17 Dec 2017 12:05:00 +0100 Subject: [PATCH] Add version matching code for JRE 9 --- lib/oracle-jre.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/oracle-jre.sh b/lib/oracle-jre.sh index 94e3d5d..4f408ff 100644 --- a/lib/oracle-jre.sh +++ b/lib/oracle-jre.sh @@ -3,6 +3,16 @@ j2se_detect_oracle_j2re=oracle_j2re_detect oracle_j2re_detect() { j2se_release=0 + # JRE 9 GA release (jre-9.0.1_linux-x64_bin.tar.gz) + if [[ $archive_name =~ ^jre-9(\.([0-9]+)\.([0-9]+))?_linux-x64_bin\.tar\.gz ]] + then + j2se_release=9 + j2se_update=${BASH_REMATCH[1]:-.0.0} + j2se_arch=x64 + j2se_version_name="${j2se_release} version ${j2se_release}${j2se_update}" + j2se_version=${j2se_release}${j2se_update}${revision} + fi + # Update or GA release (jre-7u13-linux-x64.tar.gz) if [[ $archive_name =~ ^jre-([0-9]+)(u([0-9]+))?-linux-(i586|x64|amd64)\.(bin|tar\.gz) ]] then -- 2.39.5