summarylogtreecommitdiffstats
path: root/patch-jvm-version-check.patch
blob: 25cce9f075488a25ccaee6b56fcf5dd82411d801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- package.orig/IPMIView_2.21.1_build.230720_bundleJRE_Linux_x64/IPMIView20
+++ package.new/IPMIView_2.21.1_build.230720_bundleJRE_Linux_x64/IPMIView20
@@ -871,12 +871,7 @@
 getJavaVersion()
 {
 	javaExe=$1
-	javaVersion=` "${javaExe}" -version 2>&1 | $AWK '
-$3 ~ /"[0-9]\.[0-9]\.[0-9][^"]*"$/ {
-	gsub ("[^0-9._]", "", $3)
-	print $3
-}
-	' `
+	javaVersion=` "${javaExe}" -version 2>&1 | $AWK -F '"' '/version/ {print $2}' `
 	unset javaExe
 }
 #