Skip to content

Commit 5758626

Browse files
authored
Fix travis.yml before_deploy script to correctly pattern match
1 parent 130c5de commit 5758626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ before_deploy:
2525
if [ -z "$BEFORE_DEPLOY_RAN" ]; then
2626
npm --no-git-tag-version version $RELEASE_VERSION
2727
if [ "$TRAVIS_BRANCH" == "master" ]; then export NPM_TAG=stable; fi
28-
if [ "$TRAVIS_BRANCH" == hotfix/* ]; then export NPM_TAG=hotfix; fi
28+
if [[ "$TRAVIS_BRANCH" == hotfix/* ]]; then export NPM_TAG=hotfix; fi # double brackets are important for matching the wildcard
2929
git config --global user.email $(git log --pretty=format:"%ae" -n1)
3030
git config --global user.name $(git log --pretty=format:"%an" -n1)
3131
export BEFORE_DEPLOY_RAN=true

0 commit comments

Comments
 (0)