build: fix: remove error output

while git not found in path, error is output to console.
This commit is contained in:
harry 2014-05-09 12:06:20 +08:00 committed by langerhans
parent 40ae77d46d
commit 50a0dccaf0

View file

@ -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