]> git.sur5r.net Git - bacula/bacula/commitdiff
Change grep -e to egrep and use -c instead of using wc.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 29 Sep 2009 18:02:12 +0000 (20:02 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 29 Sep 2009 19:26:12 +0000 (21:26 +0200)
Signed-off-by: Eric Bollengier <eric@eb.homelinux.org>
regress/tests/exclude-dir-test

index 6dce2fc8031fffc09e5114c3338d0f91baa0dc07..e437206d09eeec57edb1b40d3b5af7d79316ed25 100755 (executable)
@@ -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