Skip to content

Commit c706e33

Browse files
committed
fix release script
1 parent 9a9b4ca commit c706e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/release

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
1313
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
1414
read -p 'New Release Tag (vX.X.X format): ' new_tag
1515

16-
tag_regex='^v\d\.\d\.\d$'
17-
echo "$new_tag" | grep -E -q $tag_regex
16+
tag_regex='^v[0-9]+\.[0-9]+\.[0-9]+$'
17+
echo "$new_tag" | grep -E "$tag_regex"
1818

1919
if [[ $? -ne 0 ]]; then
2020
echo -e "${RED}ERROR${OFF} - Tag: $new_tag is not valid. Please use vX.X.X format."

0 commit comments

Comments
 (0)