Skip to content

Commit

Permalink
Fix script errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed May 26, 2021
1 parent 91c0480 commit 719e4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

function get_version {
if [ "$TRAVIS_BRANCH" =~ ^release.*$ ]; then
if [[ "$TRAVIS_BRANCH" =~ ^release.*$ ]]; then
# Travis executes this script from the repository root, so at the same level than package.json
VERSION=$(node -p -e "require('./package.json').version")
if [[ "$VERSION" =~ -(alpha|beta|rc) ]]; then
echo "next"
else
echo $VERSION
fi
elif [[ "$TRAVIS_BRANCH" == "master" ]]; then
elif [ "$TRAVIS_BRANCH" == "master" ]; then
echo "master"
else
echo ""
Expand Down

0 comments on commit 719e4ef

Please sign in to comment.