mirror of https://github.com/vector-im/riot-web
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.pull/2551/head
parent
db07ef7899
commit
f5d95f7314
|
@ -2,8 +2,8 @@
|
|||
|
||||
set -e
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
version=$1
|
||||
if [ -n "$DIST_VERSION" ]; then
|
||||
version=$DIST_VERSION
|
||||
else
|
||||
version=`git describe --dirty --tags || echo unknown`
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue