Skip to content

Commit

Permalink
Add preliminary version string check
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Aug 25, 2022
1 parent 9f11baa commit be5a8db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions make_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if [[ -z ${version} ]]; then
exit 1
fi

if [[ ! ${version} =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
echo "Version string incorrect."
exit 1
fi

if ! which gh >/dev/null; then
echo "Didn't find the \`gh\` binary."
exit 1
Expand Down

0 comments on commit be5a8db

Please sign in to comment.