From 5c95a1b8388ae3274188af8957a226f29526a825 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 16 Feb 2010 13:58:55 +0100 Subject: [PATCH] Eliminate error message in regress setup if get not present --- regress/scripts/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5