From b1f0be0a05aca81e564139472206dee72410976e Mon Sep 17 00:00:00 2001 From: harry Date: Fri, 9 May 2014 12:06:20 +0800 Subject: [PATCH] build: fix: remove error output while git not found in path, error is output to console. --- share/genbuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/genbuild.sh b/share/genbuild.sh index 6890a6eba..0800b3122 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