We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7af0cdc commit 5785faeCopy full SHA for 5785fae
scripts/version.sh
@@ -48,7 +48,9 @@ if [[ $describe_output =~ ^v([0-9]+\.[0-9]+\.[0-9]+)(-([0-9]+)-g[a-f0-9]+)?$ ]];
48
version=${BASH_REMATCH[1]} # X.Y.Z
49
commits=${BASH_REMATCH[3]} # number of commits since tag
50
51
- if [[ "$SHORT" == true ]]; then
+ # If we're producing a short version string, or this is a release version
52
+ # (no commits since tag)
53
+ if [[ "$SHORT" == true ]] || [[ -z "$commits" ]]; then
54
echo "$version"
55
exit 0
56
fi
0 commit comments