From: Marco van Wieringen Date: Tue, 29 Sep 2009 18:02:12 +0000 (+0200) Subject: Change grep -e to egrep and use -c instead of using wc. X-Git-Tag: Release-7.0.0~2616^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01c5f43041b5ee7f8a4fb1c1a49d102207c20eb0;p=bacula%2Fbacula Change grep -e to egrep and use -c instead of using wc. Signed-off-by: Eric Bollengier --- diff --git a/regress/tests/exclude-dir-test b/regress/tests/exclude-dir-test index ee420e170d..b60bb8b80b 100755 --- a/regress/tests/exclude-dir-test +++ b/regress/tests/exclude-dir-test @@ -79,7 +79,7 @@ fi # build/po is included 2 times with a different exclude file # we shouldn't see scripts and bin -nb=`grep -e 'build/po/fr.po$' $tmp/log3.out | wc -l` +nb=`egrep -c 'build/po/fr.po$' $tmp/log3.out` if [ $nb != 2 ]; then print_debug "ERROR: Should see fr.po two times" bstat=2