Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
(debian) Fix commit number in about page (#11292)
Browse files Browse the repository at this point in the history
* fix get commit number

* fix path to get commit
  • Loading branch information
lgcosta authored Jun 27, 2022
1 parent 92eebe0 commit 2aa3f5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/scripts/centreon-deb-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ echo "################################################## PACKAGING WEB #########
AUTHOR="Luiz Costa"
AUTHOR_EMAIL="me@luizgustavo.pro.br"

# Get COMMIT number
COMMIT=$(cd centreon && git log -1 HEAD --pretty=format:%h)

# fix version to debian format accept
VERSION="$(echo $VERSION | sed 's/-/./g')"
MAJOR_VERSION="$(echo $VERSION | egrep -o '^[0-9][0-9].[0-9][0-9]')"
Expand Down

0 comments on commit 2aa3f5a

Please sign in to comment.