Avoid using "grep -q" outside of GNU/Linux specific utilities.
[openvswitch] / Makefile.am
index 8517b2b8432477bffb1a22143b21fef7dea59993..457513cb9dd8853efe892c0860ef38f09022f779 100644 (file)
@@ -88,7 +88,7 @@ SUFFIXES += .in
                 -e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \
                 -e 's,[@]ovsdbmonitordir[@],$(ovsdbmonitordir),g' \
             > $@.tmp
-       @if head -n 1 $@.tmp | grep -q '#!'; then \
+       @if head -n 1 $@.tmp | grep '#!' > /dev/null; then \
            echo chmod +x $@.tmp; \
            chmod +x $@.tmp; \
        fi