From: Jukka Kurkela Date: Thu, 20 Feb 2020 14:41:27 +0000 (+0200) Subject: Fix deploy.sh if (#7132) X-Git-Tag: v3.0.0-alpha~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd4537cae426ca9813cbaf5ed144ce94a8f62f09;p=thirdparty%2FChart.js.git Fix deploy.sh if (#7132) --- diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b5ff1d6dc..d7717b23c 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -8,7 +8,7 @@ TARGET_REPO_URL="https://$GITHUB_AUTH_TOKEN@github.com/chartjs/chartjs.github.io VERSION_REGEX='[[:digit:]]+.[[:digit:]]+.[[:digit:]]+(-.*)?' # Make sure that this script is executed only for the release and master branches -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") elif [ "$TRAVIS_BRANCH" == "master" ]; then