Skip to content

Commit

Permalink
scripts: stricter tag matching in version.sh
Browse files Browse the repository at this point in the history
In order not to conflict with axosyslog-charts.

Signed-off-by: László Várady <laszlo.varady@axoflow.com>
  • Loading branch information
MrAnno committed May 17, 2024
1 parent 839b1d5 commit 14ef1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd $BASEDIR/../

if [ "$VERSION" != "" ]; then
echo $VERSION | tr -d '\n'
elif [ -d .git ] && GIT_VERSION=$(git describe --tags --dirty --abbrev=7); then
elif [ -d .git ] && GIT_VERSION=$(git describe --match 'axosyslog-[0-9]*' --tags --dirty --abbrev=7); then
echo $GIT_VERSION | sed 's/^axosyslog-//' | tr '-' '.' | tr -d '\n'
else
cat VERSION.txt | tr -d '\n'
Expand Down

0 comments on commit 14ef1c0

Please sign in to comment.