Skip to content

Commit 464e46f

Browse files
committed
Fix shell parameter substitution
The substitution for a value if set and not null is `${name:-word}`, not `${name-:word}` (which would substitute `:word` if not set). Fix it. Signed-off-by: Kevin Locke <[email protected]>
1 parent acf4525 commit 464e46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"//": "Note: nyc incompatible with --parallel. See https://github.com/istanbuljs/nyc/issues/1328 and https://github.com/mochajs/mocha/issues/4372",
4949
"test-unit-cov": "nyc --reporter=lcov --reporter=text node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --recursive test",
5050
"upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info",
51-
"version": "npm run changelog && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && \"${npm_config_shell-:${SHELL-:bash}}\" && git commit -m \"Update CHANGELOG.md for $npm_package_version\" CHANGELOG.md",
51+
"version": "npm run changelog && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && \"${npm_config_shell:-${SHELL:-bash}}\" && git commit -m \"Update CHANGELOG.md for $npm_package_version\" CHANGELOG.md",
5252
"version-deps": "npm install conventional-changelog-cli david depcheck git-branch-is hub-ci-status"
5353
},
5454
"dependencies": {

0 commit comments

Comments
 (0)