]> granicus.if.org Git - openssl/commitdiff
Don't use "grep -q", "-q" is not POSIX, and fails on Solaris.
authorKristian Amlie <kristian.amlie@cfengine.com>
Mon, 18 Jan 2016 14:18:56 +0000 (15:18 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 18 Jan 2016 15:16:20 +0000 (16:16 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
util/domd

index e39d3e304ea7ab5cb5ad38747c91104d77e2364c..16de5c7ebcc62973360af0efdc8f326f22f684e9 100755 (executable)
--- a/util/domd
+++ b/util/domd
@@ -16,8 +16,8 @@ fi
 if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
 
 cp Makefile Makefile.save
-if ${MAKEDEPEND} --version 2>&1 | grep -q "clang" ||
-   echo $MAKEDEPEND | grep -q "gcc"; then
+if ${MAKEDEPEND} --version 2>&1 | grep "clang" > /dev/null ||
+   echo $MAKEDEPEND | grep "gcc" > /dev/null; then
     args=""
     while [ $# -gt 0 ]; do
        if [ "$1" != "--" ]; then args="$args $1"; fi