From 4ae68421fe3bca901dc4112df95fcc5184aa1273 Mon Sep 17 00:00:00 2001 From: Quan Vo Date: Mon, 11 Dec 2017 13:23:17 -0600 Subject: [PATCH] fix: syntax error in deploy.sh --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 609a589..8498a7f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,10 +5,10 @@ PKG_NAME=`node -e "console.log(require('./package.json').name);"` PKG_VER=`node -e "console.log(require('./package.json').version);"` NPM_VER=`npm show $PKG_NAME version` CHECK_REG=$(curl https://registry.npmjs.com/$PKG_NAME) -NOT_FOUND=$(node -e "console.log(Object.keys(JSON.parse(JSON.stringify($CHECK_REG))).length") +NOT_FOUND=$(node -e "console.log(Object.keys(JSON.parse(JSON.stringify($CHECK_REG))).length)") echo "$PKG_NAME : version = $PKG_VER, npm version = $NPM_VER" -if [[ $TRAVIS_BRANCH == "master" ]]; then +if [[ $TRAVIS_BRANCH == "master" ]]; then echo "Build targetting master - checking if this is a PR or not" if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then echo "This is a build on master, performing additional steps"