From 2aa93c54f53693c72ed9d51716ba7370b66fa6c5 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 27 May 2008 14:33:16 +0000 Subject: Use 'grep -q' instead of redirecting grep output to /dev/null. The -q option is part of POSIX. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26902 b3059339-0415-0410-9bf9-f77b7e298cf2 --- help/help_diff.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help/help_diff.sh b/help/help_diff.sh index da67880323..17c8e83e36 100755 --- a/help/help_diff.sh +++ b/help/help_diff.sh @@ -12,9 +12,9 @@ test $1 = "help/help_mp-en.h" && exit 0 curr="" while read -r line; do - if echo "$line" | grep '^#define' > /dev/null 2>&1; then + if echo "$line" | grep -q '^#define' ; then curr=`printf "%s\n" "$line" | cut -d ' ' -f 2` - if grep "^#define $curr[ ]" $1 > /dev/null 2>&1; then + if grep -q "^#define $curr[ ]" $1 ; then curr="" fi else -- cgit v1.2.3