--name-only

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-09-04 22:45:59 +02:00
parent 8af3374965
commit 74449ba45e

View file

@ -198,12 +198,8 @@ eof
# Generate version file to be included in packaging
"$0" version
set -x
pwd
git diff-index --exit-code --quiet HEAD
ret=$?
# Ensure the git status is clean, else abort
if [ "$ret" -ne 0 ]; then
if ! git diff-index --name-only --quiet HEAD >/dev/null; then
echo "Unclean tree, aborting"
exit 1
fi