aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/travis-emscripten/publish_binary.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh
index 8fb0a2bc..7bf6f369 100755
--- a/scripts/travis-emscripten/publish_binary.sh
+++ b/scripts/travis-emscripten/publish_binary.sh
@@ -81,16 +81,18 @@ else
fi
+NEWFILE=./bin/"soljson-$FULLVERSION.js"
+
# Prepare for update script
npm install
# This file is assumed to be the product of the build_emscripten.sh script.
-cp ../soljson.js ./bin/"soljson-$FULLVERSION.js"
+cp ../soljson.js "$NEWFILE"
# Run update script
npm run update
# Publish updates
-git add ./bin/"soljson-$FULLVERSION.js"
+git add "$NEWFILE"
git commit -a -m "Added compiler version $FULLVERSION"
git push origin gh-pages