Use an env var for the package version
Because supplying arguments to npm scripts is a bad idea: it just appends the arguments blindly to whatever the command was. Thanks, npm.
This commit is contained in:
parent
db07ef7899
commit
f5d95f7314
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
if [ -n "$DIST_VERSION" ]; then
|
||||||
version=$1
|
version=$DIST_VERSION
|
||||||
else
|
else
|
||||||
version=`git describe --dirty --tags || echo unknown`
|
version=`git describe --dirty --tags || echo unknown`
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue