From: Joel Rosdahl Date: Sun, 30 May 2010 09:52:04 +0000 (+0200) Subject: Portability: Don't use grep -q X-Git-Tag: v3.0~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eac1ed06f4ede0eea7f89c22ced27bbb266ca97f;p=thirdparty%2Fccache.git Portability: Don't use grep -q --- diff --git a/test.sh b/test.sh index 910e0cdc9..048dc7d53 100755 --- a/test.sh +++ b/test.sh @@ -1145,7 +1145,7 @@ EOF checkstat 'cache hit (direct)' 0 checkstat 'cache hit (preprocessed)' 0 checkstat 'cache miss' 1 - if grep -q `pwd` stderr.txt; then + if grep `pwd` stderr.txt >/dev/null 2>&1; then test_failed "Base dir (`pwd`) found in stderr:\n`cat stderr.txt`" fi @@ -1153,7 +1153,7 @@ EOF checkstat 'cache hit (direct)' 1 checkstat 'cache hit (preprocessed)' 0 checkstat 'cache miss' 1 - if grep -q `pwd` stderr.txt; then + if grep `pwd` stderr.txt >/dev/null 2>&1; then test_failed "Base dir (`pwd`) found in stderr:\n`cat stderr.txt`" fi