Skip to content
Myr

style and remove nvm deactivate in nvm which

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

authored by Daniel Bretoi · committed by Daniel Bretoi · parent 0c33fd2 · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
952 unmodified lines
953 "which" )954 if [ $# -eq 1 ]; then955 nvm_rc_version956 if [ -n "$NVM_RC_VERSION" ]; then957 VERSION=`nvm_version $NVM_RC_VERSION`957 VERSION=$(nvm_version $NVM_RC_VERSION)958 fi959 elif [ "_$2" != '_system' ]; then960 VERSION="$(nvm_version "$2")"961 else
4 unmodified lines
966 return 127967 fi968969 if [ "_$VERSION" = '_system' ]; then970 if nvm_has_system_node && nvm deactivate >/dev/null 2>&1; then970 if nvm_has_system_node >/dev/null 2>&1; then971 echo $(dirname `which node`)972 return973 else974 echo "System version of node not found." >&2
124 unmodified lines