mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
live mount: fix version advertise
This commit is contained in:
parent
da377461f6
commit
5f1c347f53
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user