Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5785fae

Browse files
ci: remove trailing dot from release versions (#170)
1 parent7af0cdc commit5785fae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎scripts/version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ if [[ $describe_output =~ ^v([0-9]+\.[0-9]+\.[0-9]+)(-([0-9]+)-g[a-f0-9]+)?$ ]];
4848
version=${BASH_REMATCH[1]}# X.Y.Z
4949
commits=${BASH_REMATCH[3]}# number of commits since tag
5050

51-
if [["$SHORT"==true ]];then
51+
# 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
5254
echo"$version"
5355
exit 0
5456
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp