Skip to content

Commit f5d95f7

Browse files
committed
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.
1 parent db07ef7 commit f5d95f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/package.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
if [ $# -eq 1 ]; then
6-
version=$1
5+
if [ -n "$DIST_VERSION" ]; then
6+
version=$DIST_VERSION
77
else
88
version=`git describe --dirty --tags || echo unknown`
99
fi

0 commit comments

Comments
 (0)