mirror of https://github.com/mpv-player/mpv
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:
parent
f4724c6a9a
commit
2aa93c54f5
|
@ -12,9 +12,9 @@ test $1 = "help/help_mp-en.h" && exit 0
|
||||||
curr=""
|
curr=""
|
||||||
|
|
||||||
while read -r line; do
|
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`
|
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=""
|
curr=""
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue