From 7ac889758c01fcdfddb150362f2c2c0f185e473d Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Wed, 4 Apr 2012 14:37:15 +0100 Subject: [PATCH] [monodoc] Suppress output from grep in conditional This prevents a strange (albeit harmless) warning when, for example, /etc/gre.d/ does not exist. --- docbrowser/monodoc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docbrowser/monodoc.in b/docbrowser/monodoc.in index a532918fe..806b163d2 100644 --- a/docbrowser/monodoc.in +++ b/docbrowser/monodoc.in @@ -75,7 +75,7 @@ elif test x@MOZILLA_HOME@ != x; then if [ -f @MOZILLA_HOME@/chrome/comm.jar ]; then MOZILLA_HOME=@MOZILLA_HOME@ fi -elif grep GRE_PATH /etc/gre.d/*.conf > /dev/null ; then +elif grep -qs GRE_PATH /etc/gre.d/*.conf > /dev/null ; then MOZILLA_HOME=$(grep -h GRE_PATH= /etc/gre.d/*.conf | cut -d '"' -f 2 -d = | head -n 1) elif [ $(which xulrunner 2> /dev/null) ] > /dev/null ; then MOZILLA_FIVE_HOME=`getdirectory xulrunner`