1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 03:15:52 +00:00

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
This commit is contained in:
diego 2008-05-27 14:33:16 +00:00
parent f4724c6a9a
commit 2aa93c54f5

View File

@ -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