]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate error message in regress setup if get not present
authorKern Sibbald <kern@sibbald.com>
Tue, 16 Feb 2010 12:58:55 +0000 (13:58 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:32 +0000 (16:49 +0200)
regress/scripts/setup

index 39b4cb920c30135d5f741363557fc19132bd93db..8fd67bf739e59cdaadca61d5fc4a9fb634aeb29c 100755 (executable)
@@ -25,8 +25,8 @@ rm -rf build bin
 # Copy new source
 echo "Copying source from ${BACULA_SOURCE}"
 cp -rp ${BACULA_SOURCE} build
-which git
-if [ $? = 0 ; then
+which git >/dev/null 2>/dev/null
+if [ $? = 0 ; then
   git show HEAD | grep -m 1 commit | awk '{print $2}' > build/git-version
 else
   cat "Git not found." >build/git-version