summaryrefslogtreecommitdiff
path: root/network/frostwire/frostwire_checkjava.diff
blob: 3fb05fb574471064536c6c434432e5cafab697eb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- frostwire	2011-11-22 08:50:52.000000000 -0800
+++ frostwire.new	2011-12-26 13:56:41.676000352 -0800
@@ -73,7 +73,7 @@
       return 1
   fi
 
-  JAVA_HEADER=`${JAVA_PROGRAM_DIR}java -version 2>&1 | head -n 1`
+  JAVA_HEADER=`${JAVA_PROGRAM_DIR}java -version 2>&1 | grep java`
   JAVA_IMPL=`echo ${JAVA_HEADER} | cut -f1 -d' '`
   if [ "$JAVA_IMPL" = "java" ] ; then
     VERSION=`echo ${JAVA_HEADER} | sed "s/java version \"\(.*\)\"/\1/"`