SHA256
1
0
forked from pool/opa-fmgui
opa-fmgui/opa-fmgui-fix-detection-of-OpenJDK.patch

14 lines
573 B
Diff

diff -urN opa-fmgui-orig/install/fmgui.sh opa-fmgui/install/fmgui.sh
--- opa-fmgui-orig/install/fmgui.sh 2016-09-12 08:01:52.027654361 -0400
+++ opa-fmgui/install/fmgui.sh 2016-09-12 08:04:05.636122357 -0400
@@ -7,7 +7,7 @@
if [ $DEBUG -eq 1 ]; then
echo Checking JVM $2
fi
-JVER=`$2 -version 2>&1 | grep "java version" | awk '{print substr($3, 2, 3);}' | sed -e 's;\.;0;g'`
+JVER=`$2 -version 2>&1 | grep "version" | awk '{print substr($3, 2, 3);}' | sed -e 's;\.;0;g'`
if [ $JVER ]; then
if [ $JVER -ge $JAVA_REQ ]; then
if [ $DEBUG -eq 1 ]; then