]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix warning with scripts/getgitcommit when building outside of a git repo
authorEric Bollengier <eric@baculasystems.com>
Tue, 13 Jul 2021 09:04:12 +0000 (11:04 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/scripts/getgitcommit

index 21ace2437a939df9936641474837b643fab43d27..7f07efec8aac36587d3ec456d2a1815f7a9df90d 100755 (executable)
@@ -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"