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

Commit

Permalink
Merge pull request #98 from Axway/APIGOV-27843
Browse files Browse the repository at this point in the history
APIGOV-27843 - fix regex pattern
  • Loading branch information
dfeldick authored May 7, 2024
2 parents 359e541 + f5f8421 commit 3d5b80a
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 3d5b80a

Please sign in to comment.