about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-02-28 18:42:28 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-02-28 22:39:44 -0800
commit341f41422098eb8f2ea0efa0ebc82e1f09f5f48b (patch)
tree6e77351b0f115e2c423b7052c951530289b15a68
parent1c14d36e72a9fe35470094fc52ef078f53f645df (diff)
downloadrust-341f41422098eb8f2ea0efa0ebc82e1f09f5f48b.tar.gz
rust-341f41422098eb8f2ea0efa0ebc82e1f09f5f48b.zip
configure: quiet some greps.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 077723890ac..ac7d08a3832 100755
--- a/configure
+++ b/configure
@@ -198,7 +198,7 @@ if [ $CFG_OSTYPE = Darwin -a $CFG_CPUTYPE = i386 ]
 then
     # Darwin's `uname -s` lies and always returns i386. We have to use sysctl
     # instead.
-    if sysctl hw.optional.x86_64 | grep ': 1'
+    if sysctl hw.optional.x86_64 | grep -q ': 1'
     then
         CFG_CPUTYPE=x86_64
     fi
@@ -391,7 +391,7 @@ fi
 
 if [ ! -z "$CFG_PERF" ]
 then
-    HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep 'unknown option'`
+    HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep -q 'unknown option'`
     if [ -z "$HAVE_PERF_LOGFD" ];
     then
         CFG_PERF_WITH_LOGFD=1