live mount: fix version advertise

This commit is contained in:
Franco Fichtner 2015-07-10 08:28:32 +02:00
parent da377461f6
commit 5f1c347f53

View File

@ -29,9 +29,10 @@ set -e
VERSION=$(git describe --abbrev=0 --always)
REVISION=$(git rev-list ${VERSION}.. --count)
COMMENT=$(git rev-list HEAD --max-count=1 | cut -c1-9)
if [ "${REVISION}" != "0" ]; then
# must construct full version string manually
VERSION=${VERSION}_${REVISION}
fi
echo ${VERSION}
echo ${VERSION}-${COMMENT}