From d6c498b5f3217158ff1ea4ad813df2350cb35516 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Fri, 21 Apr 2017 20:04:57 -0700 Subject: [PATCH] Fix shell script error --- swagger-ui-dist-package/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger-ui-dist-package/deploy.sh b/swagger-ui-dist-package/deploy.sh index c3f854de..2668e90a 100755 --- a/swagger-ui-dist-package/deploy.sh +++ b/swagger-ui-dist-package/deploy.sh @@ -12,7 +12,7 @@ sed -i '' "s|\$\$VERSION|$UI_VERSION|g" package.json # Copy UI's dist files to our directory cp ../dist/* . -if [[ $PUBLISH_DIST = "true" || $TRAVIS = "true" ]]; then +if [ $PUBLISH_DIST -eq "true" ] || [ $TRAVIS -eq "true" ] ; then npm publish . else npm pack .