From d04cc03c1c0d5a38b8d11206eb675f540fda494c Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 2 Nov 2016 11:38:11 +0000 Subject: [PATCH] Take version from first arg, if given --- scripts/package.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/package.sh b/scripts/package.sh index 7cfb39746..64d555533 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -2,7 +2,11 @@ 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 mkdir -p dist