Skip to content

Commit 40a7dc5

Browse files
committed
Refactor release script to respect SC2001 and SC2086
1 parent 6709e64 commit 40a7dc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script/release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ git tag -a "$new_tag" -m "$new_tag Release"
5454
echo -e "${GREEN}Tagged: $new_tag${OFF}"
5555

5656
# 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"
57+
new_major_tag=${new_tag%%.*}
58+
git tag -fa "$new_major_tag" -m "Update $new_major_tag tag"
5959
echo -e "${GREEN}Tagged: $new_major_tag${OFF}"
6060

6161
# Push the new tag to the remote

0 commit comments

Comments
 (0)