Skip to content

Commit

Permalink
release.sh: allow -rc.X suffixes (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawnGnome authored Aug 18, 2022
1 parent e6e03e8 commit 8a75c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ case "$REPLY" in
;;
esac

if ! echo "$VERSION" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'; then
if ! echo "$VERSION" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$'; then
echo "\$VERSION is not in MAJOR.MINOR.PATCH format"
exit 1
fi
Expand Down

0 comments on commit 8a75c6f

Please sign in to comment.