From: Kern Sibbald Date: Tue, 16 Feb 2010 12:58:55 +0000 (+0100) Subject: Eliminate error message in regress setup if get not present X-Git-Tag: Release-5.0.1~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c7c238ef7d4759249c3b392b01f764571eda124;p=bacula%2Fbacula Eliminate error message in regress setup if get not present --- diff --git a/regress/scripts/setup b/regress/scripts/setup index 39b4cb920c..8fd67bf739 100755 --- a/regress/scripts/setup +++ b/regress/scripts/setup @@ -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