We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6709e64 commit 40a7dc5Copy full SHA for 40a7dc5
1 file changed
script/release
@@ -54,8 +54,8 @@ git tag -a "$new_tag" -m "$new_tag Release"
54
echo -e "${GREEN}Tagged: $new_tag${OFF}"
55
56
# Tag major version
57
-new_major_tag=$(echo $new_tag | sed 's/\(v[0-9]\+\).*/\1/')
58
-git tag -fa $new_major_tag -m "Update $new_major_tag tag"
+new_major_tag=${new_tag%%.*}
+git tag -fa "$new_major_tag" -m "Update $new_major_tag tag"
59
echo -e "${GREEN}Tagged: $new_major_tag${OFF}"
60
61
# Push the new tag to the remote
0 commit comments