Skip to content

Commit d9bc37e

Browse files
committed
Removed variable assignment not to include quotes in npm version command
1 parent 3d8e53e commit d9bc37e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/create-version.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ createVersion() {
2525
echo -e $LOG_PREFIX $@
2626
}
2727

28-
NPM_VERSION_ARGUMENT=$@
2928
NPM_PACKAGE_NAME=`cut -d "=" -f 2 <<< $(npm run env | grep "npm_package_name")`
3029

3130
MAIN_BRANCH=${MAIN_BRANCH:-master}
@@ -55,7 +54,7 @@ createVersion() {
5554
log "Running build failed"
5655
}
5756

58-
NEXT_VERSION=$(npm version --no-git-tag-version "$NPM_VERSION_ARGUMENT")
57+
NEXT_VERSION=$(npm version --no-git-tag-version "$@")
5958
log "Creating ${NPM_PACKAGE_NAME} ${NEXT_VERSION}...";
6059

6160
log "Creating version publish branch...";

0 commit comments

Comments
 (0)