style and remove nvm deactivate in nvm which

master
Daniel Bretoi 2014-12-02 12:40:23 -08:00
parent 0c33fd2598
commit 234b925c7a
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -954,7 +954,7 @@ nvm() {
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
nvm_rc_version nvm_rc_version
if [ -n "$NVM_RC_VERSION" ]; then if [ -n "$NVM_RC_VERSION" ]; then
VERSION=`nvm_version $NVM_RC_VERSION` VERSION=$(nvm_version $NVM_RC_VERSION)
fi fi
elif [ "_$2" != '_system' ]; then elif [ "_$2" != '_system' ]; then
VERSION="$(nvm_version "$2")" VERSION="$(nvm_version "$2")"
@ -967,7 +967,7 @@ nvm() {
fi fi
if [ "_$VERSION" = '_system' ]; then if [ "_$VERSION" = '_system' ]; then
if nvm_has_system_node && nvm deactivate >/dev/null 2>&1; then if nvm_has_system_node >/dev/null 2>&1; then
echo $(dirname `which node`) echo $(dirname `which node`)
return return
else else