Skip to content

Commit 91f77d0

Browse files
committedJul 19, 2024
release script fixes
1 parent dd1b9d8 commit 91f77d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎script/release

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
1414
read -p 'New Release Tag (vX.X.X format): ' new_tag
1515

1616
tag_regex='^v\d\.\d\.\d$'
17-
echo "$new_tag" | grep -P -q $tag_regex
17+
echo "$new_tag" | grep -E -q $tag_regex
1818

1919
if [[ $? -ne 0 ]]; then
20-
echo "Tag: $new_tag is valid"
20+
echo -e "${RED}ERROR${OFF} - Tag: $new_tag is not valid. Please use vX.X.X format."
21+
exit 1
2122
fi
2223

2324
git tag -a $new_tag -m "$new_tag Release"

0 commit comments

Comments
 (0)