From b289d5992a00748213d0344c0eacf42a3b7f60c2 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Fri, 21 Apr 2017 20:27:00 -0700 Subject: [PATCH] MOAR deploy fixes --- swagger-ui-dist-package/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swagger-ui-dist-package/deploy.sh b/swagger-ui-dist-package/deploy.sh index 2668e90a..e77f9e24 100755 --- a/swagger-ui-dist-package/deploy.sh +++ b/swagger-ui-dist-package/deploy.sh @@ -7,12 +7,12 @@ cd "${0%/*}" UI_VERSION=$(node -p "require('../package.json').version") # Replace our version placeholder with UI's version -sed -i '' "s|\$\$VERSION|$UI_VERSION|g" package.json +sed -i "s|\$\$VERSION|$UI_VERSION|g" package.json # Copy UI's dist files to our directory cp ../dist/* . -if [ $PUBLISH_DIST -eq "true" ] || [ $TRAVIS -eq "true" ] ; then +if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then npm publish . else npm pack .