Take version from first arg, if given

This commit is contained in:
David Baker 2016-11-02 11:38:11 +00:00
parent 4fb273284d
commit d04cc03c1c
1 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,11 @@
set -e set -e
version=`git describe --dirty --tags || echo unknown` if [ $# -eq 1 ]; then
version=$1
else
version=`git describe --dirty --tags || echo unknown`
fi
npm run build npm run build
mkdir -p dist mkdir -p dist