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-7.0.0~2189 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c95a1b8388ae3274188af8957a226f29526a825;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