generate-version: redirect *both* stdout and stderr to /dev/null

This commit is contained in:
Daniel Eklöf 2019-11-27 21:19:59 +01:00
parent c18ff22a95
commit 5b6c941b0a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -10,7 +10,7 @@ out_file=${3}
# echo "source directory: ${src_dir}"
# echo "output file: ${out_file}"
if command -v git > /dev/null && git rev-parse --is-inside-work-tree 2> /dev/null; then
if command -v git > /dev/null && git rev-parse --is-inside-work-tree > /dev/null 2>&1 ; then
workdir=$(pwd)
cd "${src_dir}"
git_version=$(git describe --always --tags)