From b26ae7e7a03c8dc39b720e3f697798198d1d967e Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Mon, 15 Jul 2024 20:54:21 +0100 Subject: [PATCH] change version to follow semver --- sbin/exabgp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/exabgp b/sbin/exabgp index ec7f62c0a..5f64ddea4 100755 --- a/sbin/exabgp +++ b/sbin/exabgp @@ -10,10 +10,10 @@ if [ $? -eq 0 ]; then if [ $GIT_TAG -eq 0 ]; then GIT_BRANCH=`git branch | grep "*" | awk '{ print $2}'` GIT_COMMIT=`git rev-parse --short=10 HEAD` - export EXABGP_VERSION="main-${GIT_COMMIT}-$(date +%Y%m%d)" + export EXABGP_VERSION="$(date +%Y.%m.%d)-${GIT_BRANCH}-${GIT_COMMIT}" fi else - export EXABGP_VERSION="main-unknown-$(date +%Y%m%d)" + export EXABGP_VERSION="$(date -r $0 +%Y.%m.%d)-uncontrolled" fi