Fix shell scripting bug in bug scripts.

This commit is contained in:
Simon Kelley committed 2012-02-09 21:33:09 +00:00
1 parent 3268e90f5e
commit 9bbc88762b
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
search=$1
shift
if grep "^\#[[:space:]]*define[[:space:]]*$search" config.h 2>&1 >/dev/null || \
grep $search 2>&1 >/dev/null ; then
if grep "^\#[[:space:]]*define[[:space:]]*$search" config.h >/dev/null 2>&1 || \
grep $search >/dev/null 2>&1; then
exec $*
fi