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.2.1~1724 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=998adeb1ef9ddbd416b41f3d5a05555af667bcd8;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