Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ if [[ $describe_output =~ ^v([0-9]+\.[0-9]+\.[0-9]+)(-([0-9]+)-g[a-f0-9]+)?$ ]];
version=${BASH_REMATCH[1]} # X.Y.Z
commits=${BASH_REMATCH[3]} # number of commits since tag

if [[ "$SHORT" == true ]]; then
# If we're producing a short version string, or this is a release version
# (no commits since tag)
if [[ "$SHORT" == true ]] || [[ -z "$commits" ]]; then
echo "$version"
exit 0
fi
Expand Down
Loading