Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
APIGOV-27843 - fix regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeldick committed May 7, 2024
1 parent f5788fe commit f5f8421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ check_required_variables() {
[ -z "${TAG}" ] && echo "TAG variable not set" && exit 1
[ -z "${SDK}" ] && echo "SDK variable not set" && exit 1

pat='[0-9]+\.[0-9]+\.[0-9]'
pat='[0-9]+\.[0-9]+\.[0-9]+'
if [[ ! ${TAG} =~ $pat ]]; then
echo "TAG variable must be of the form X.X.X"
exit 1
fi

# don't post if this is a pre-release tag
pat='[0-9]+\.[0-9]+\.[0-9]-'
pat='[0-9]+\.[0-9]+\.[0-9]+-'
if [[ ${TAG} =~ $pat ]]; then
echo "This is an interim release... post to Teams skipped"
return 0
Expand Down

0 comments on commit f5f8421

Please sign in to comment.