aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2024-03-17 10:46:06 -0400
committerDevan Carpenter <devan@taler.net>2024-03-17 10:46:06 -0400
commit7d18e035c8e5a8eb8e770ea54c863b57704d83c4 (patch)
treea3859fde843eb664bb24bdfa773f7f3b3cb67cd6 /contrib
parent965ad270e2b4d87d4fed8b06e32e642c947f5a44 (diff)
ci: remove leading v character from version string
debian doesn't want a v at the start of the version string
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/ci/jobs/4-deb-package/version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ci/jobs/4-deb-package/version.sh b/contrib/ci/jobs/4-deb-package/version.sh
index d2647785..a6e740af 100755
--- a/contrib/ci/jobs/4-deb-package/version.sh
+++ b/contrib/ci/jobs/4-deb-package/version.sh
@@ -10,7 +10,7 @@ else
RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --always --abbrev=0 HEAD || exit 1)
commits="$(git rev-list ${RECENT_VERSION_TAG}..HEAD --count)"
if [ "${commits}" = "0" ]; then
- git describe --tag HEAD || exit 1
+ git describe --tag HEAD | sed -r 's/^v//' || exit 1
else
echo $(echo ${RECENT_VERSION_TAG} | sed -r 's/^v//')-${commits}-$(git rev-parse --short=8 HEAD)
fi