mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
generate-version: redirect *both* stdout and stderr to /dev/null
This commit is contained in:
parent
c18ff22a95
commit
5b6c941b0a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue