Skip to content

Commit

Permalink
change version to follow semver
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Jul 15, 2024
1 parent 869ee78 commit b26ae7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/exabgp
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit b26ae7e

Please sign in to comment.