Displaying 1 result from an estimated 1 matches for "f9bec94".
Did you mean:
f69be794
2016 Mar 07
0
[PATCH] build: fix reading of the java version
...irst line (the one containing the version) to
match also the message with OpenJDK; switch to awk so it is easier to
extract the version inside the double quotes.
---
m4/guestfs_java.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m4/guestfs_java.m4 b/m4/guestfs_java.m4
index f9bec94..649e21f 100644
--- a/m4/guestfs_java.m4
+++ b/m4/guestfs_java.m4
@@ -84,7 +84,7 @@ if test "x$with_java" != "xno"; then
else
JAR="$JAVA/bin/jar"
fi
- java_version=`$JAVA_EXE -version 2>&1 | grep "java version"`
+...