build: Fix "too many arguments" error

Closes #5141
This commit is contained in:
Francis GASCHET 2014-11-03 11:14:57 +01:00 committed by Wladimir J. van der Laan
parent be32b5212b
commit 70d80cc7bf
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

View File

@ -16,7 +16,7 @@ fi
DESC="" DESC=""
SUFFIX="" SUFFIX=""
LAST_COMMIT_DATE="" LAST_COMMIT_DATE=""
if [ -e "$(which git 2>/dev/null)" -a $(git rev-parse --is-inside-work-tree 2>/dev/null) = "true" ]; then if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then
# clean 'dirty' status of touched files that haven't been modified # clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null git diff >/dev/null 2>/dev/null