Mercurial > mplayer.hg
changeset 26870:8f3a1caf0e9a
Use 'grep -q' instead of redirecting grep output to /dev/null.
The -q option is part of POSIX.
author | diego |
---|---|
date | Tue, 27 May 2008 14:33:16 +0000 |
parents | 9000ee30a060 |
children | 626865450a91 |
files | help/help_diff.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/help/help_diff.sh Tue May 27 13:32:00 2008 +0000 +++ b/help/help_diff.sh Tue May 27 14:33:16 2008 +0000 @@ -12,9 +12,9 @@ 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