Skip to content

Commit ee0b682

Browse files
authored
Merge pull request #4 from liubao68/work
change match
2 parents 2e6517c + bfb16fe commit ee0b682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/build-and-deploy-to-maven-central.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
VERSION=$(./mvnw org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version -o | grep -v INFO)
66

7-
if [[ $VERSION =~ [^.*-SNAPSHOT$] ]] ; then
7+
if [[ $VERSION =~ .*-SNAPSHOT$ ]] ; then
88

99
echo "Cannot deploy a snapshot: $VERSION"
1010
exit 1

0 commit comments

Comments
 (0)