Skip to content
Myr

Return the proper exit code of `which` directly.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 0ac2c78 · Browse files · 1 file+8 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−2 removed

  • other:+8 added−2 removed

1 file+8 added−2 removed

modified:nvm.sh+8 added-2 removed
963 unmodified lines
964 fi965966 if [ "_$VERSION" = '_system' ]; then967 if nvm_has_system_node >/dev/null 2>&1; then968 local NVM_BIN969 NVM_BIN="$(nvm use system >/dev/null 2>&1 && which node)"970 if [ -n "$NVM_BIN" ]; then968 echo $(nvm use system > /dev/null 2>&1 && echo $(which node))969 return971 echo "$NVM_BIN"972 return973 else974 return 1975 fi976 else977 echo "System version of node not found." >&2978 return 127979 fi
122 unmodified lines