Skip to content

Commit 3c079f1

Browse files
committed
[shellcheck] fix silly shellcheck complaint
1 parent e76b294 commit 3c079f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: nvm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ nvm_die_on_prefix() {
23392339
# npm first looks at $PREFIX (case-sensitive)
23402340
# we do not bother to test the value here; if this env var is set, unset it to continue.
23412341
# however, `npm exec` in npm v7.2+ sets $PREFIX; if set, inherit it
2342-
if [ -n "${PREFIX-}" ] && [ "$(nvm_version_path $(node -v))" != "${PREFIX}" ]; then
2342+
if [ -n "${PREFIX-}" ] && [ "$(nvm_version_path "$(node -v)")" != "${PREFIX}" ]; then
23432343
nvm deactivate >/dev/null 2>&1
23442344
nvm_err "nvm is not compatible with the \"PREFIX\" environment variable: currently set to \"${PREFIX}\""
23452345
nvm_err 'Run `unset PREFIX` to unset it.'

0 commit comments

Comments
 (0)