File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -2352,7 +2352,7 @@ nvm_die_on_prefix() {
2352
2352
# here, we avoid trying to replicate "which one wins" or testing the value; if any are defined, it errors
2353
2353
# until none are left.
2354
2354
local NVM_NPM_CONFIG_PREFIX_ENV
2355
- NVM_NPM_CONFIG_PREFIX_ENV=" $( command env | nvm_grep -i ^ NPM_CONFIG_PREFIX | command tail -1 | command awk -F ' =' ' {print $1}' ) "
2355
+ NVM_NPM_CONFIG_PREFIX_ENV=" $( command env | nvm_grep -i NPM_CONFIG_PREFIX | command tail -1 | command awk -F ' =' ' {print $1}' ) "
2356
2356
if [ -n " ${NVM_NPM_CONFIG_PREFIX_ENV-} " ]; then
2357
2357
local NVM_CONFIG_VALUE
2358
2358
eval " NVM_CONFIG_VALUE=\"\$ ${NVM_NPM_CONFIG_PREFIX_ENV} \" "
Original file line number Diff line number Diff line change @@ -84,9 +84,6 @@ EXIT_CODE="$(export npm_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo "$(nvm_versi
84
84
[ " _$OUTPUT " = " _$EXPECTED_OUTPUT " ] || die " 'npm_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT '; got '$OUTPUT '"
85
85
[ " _$EXIT_CODE " = " _4" ] || die " 'npm_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 4; got '$EXIT_CODE '"
86
86
87
- OUTPUT=" $( export FOO=' NPM_CONFIG_PREFIX' ; nvm_die_on_prefix 0 foo " $( nvm_version_dir new) " 2>&1 ) "
88
- [ -z " $OUTPUT " ] || die " 'nvm_die_on_prefix' was not a noop; got '$OUTPUT '"
89
-
90
87
# npmrc tests
91
88
(
92
89
cd " ${TEST_DIR} "
You can’t perform that action at this time.
0 commit comments