]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix deploy.sh if (#7132)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Thu, 20 Feb 2020 14:41:27 +0000 (16:41 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 14:41:27 +0000 (09:41 -0500)
scripts/deploy.sh

index b5ff1d6dc7f0aa7b63e13482fd8021b940c66cd5..d7717b23cdb3006436b50bc3455048e2c0305176 100755 (executable)
@@ -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