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

View file

@ -198,8 +198,12 @@ 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 ! git diff-index --exit-code --quiet HEAD; then
if [ "$ret" -ne 0 ]; then
echo "Unclean tree, aborting"
exit 1
fi