We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a9b4ca commit c706e33Copy full SHA for c706e33
script/release
@@ -13,8 +13,8 @@ latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
13
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
14
read -p 'New Release Tag (vX.X.X format): ' new_tag
15
16
-tag_regex='^v\d\.\d\.\d$'
17
-echo "$new_tag" | grep -E -q $tag_regex
+tag_regex='^v[0-9]+\.[0-9]+\.[0-9]+$'
+echo "$new_tag" | grep -E "$tag_regex"
18
19
if [[ $? -ne 0 ]]; then
20
echo -e "${RED}ERROR${OFF} - Tag: $new_tag is not valid. Please use vX.X.X format."
0 commit comments