From: Eric Bollengier Date: Tue, 13 Jul 2021 09:04:12 +0000 (+0200) Subject: Fix warning with scripts/getgitcommit when building outside of a git repo X-Git-Tag: Release-11.3.2~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e76854c14053cd9b77273760454270eb72891dd;p=thirdparty%2Fbacula.git Fix warning with scripts/getgitcommit when building outside of a git repo --- diff --git a/bacula/scripts/getgitcommit b/bacula/scripts/getgitcommit index 21ace2437..7f07efec8 100755 --- a/bacula/scripts/getgitcommit +++ b/bacula/scripts/getgitcommit @@ -3,7 +3,7 @@ GIT=$(which git) if [ "x$GIT" != "x" ] then - COMMIT=$(git log --pretty=format:%h -n 1) 2> /dev/null + COMMIT=$(git log --pretty=format:%h -n 1 2>/dev/null) if [ "x$COMMIT" != "x" ] then echo "$COMMIT"