diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-27 14:33:16 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-27 14:33:16 +0000 |
commit | 2aa93c54f53693c72ed9d51716ba7370b66fa6c5 (patch) | |
tree | 78004e06a74a6513c3e3457c49a01a5d24cd0d9e | |
parent | f4724c6a9a03b655db17ead687edc244f46a2684 (diff) | |
download | mpv-2aa93c54f53693c72ed9d51716ba7370b66fa6c5.tar.bz2 mpv-2aa93c54f53693c72ed9d51716ba7370b66fa6c5.tar.xz |
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
-rwxr-xr-x | help/help_diff.sh | 4 |
1 files 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 |