diff options
author | harry <harrywu@tvunetworks.com> | 2014-05-09 12:06:20 +0800 |
---|---|---|
committer | harry <harrywu@tvunetworks.com> | 2014-05-09 12:06:20 +0800 |
commit | b1f0be0a05aca81e564139472206dee72410976e (patch) | |
tree | 993b703d6acb9999e0423c3d6e0e9a4e82539683 /share/genbuild.sh | |
parent | 9b4b3cf9cf8c657550c4da20e446d8c8ced720c0 (diff) |
build: fix: remove error output
while git not found in path, error is output to console.
Diffstat (limited to 'share/genbuild.sh')
-rwxr-xr-x | share/genbuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh index 6890a6eba0..0800b31229 100755 --- a/share/genbuild.sh +++ b/share/genbuild.sh @@ -16,7 +16,7 @@ fi DESC="" SUFFIX="" LAST_COMMIT_DATE="" -if [ -e "$(which git)" -a -d ".git" ]; then +if [ -e "$(which git 2>/dev/null)" -a -d ".git" ]; then # clean 'dirty' status of touched files that haven't been modified git diff >/dev/null 2>/dev/null |