Don't output `nvm deactivate` output when running `nvm use system`

master
Jordan Harband 2014-09-28 16:04:37 -07:00
parent 9aec19a692
commit 3e4613fd66
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -667,7 +667,7 @@ nvm() {
fi fi
else else
if [ $2 = 'system' ]; then if [ $2 = 'system' ]; then
if nvm_has_system_node && nvm deactivate; then if nvm_has_system_node && nvm deactivate >/dev/null; then
echo "Now using system version of node: $(node -v 2>/dev/null)." echo "Now using system version of node: $(node -v 2>/dev/null)."
return return
else else