Skip to content

Commit 66f2650

Browse files
committed
fix(script): simplify parameters for npm script
1 parent 872af2b commit 66f2650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/npm-set-latest.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[ -z "$1" ] && {
44
echo
5-
echo "Usage: npm-set-latest.sh <wechaty@version>"
5+
echo "Usage: npm-set-latest.sh <version>"
66
echo
77
exit 1
88
}
99

10-
npm dist-tag add "$1" latest
10+
npm dist-tag add "wechaty@$1" latest

0 commit comments

Comments
 (0)