Silence more secondary "deactivate" output.

master
Jordan Harband 2014-09-28 16:43:52 -07:00
parent 804f2759f8
commit ff92ba7f43
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -28,7 +28,7 @@ nvm_download() {
} }
nvm_has_system_node() { nvm_has_system_node() {
[ "$(nvm deactivate 2> /dev/null && command -v node)" != '' ] [ "$(nvm deactivate >/dev/null 2>&1 && command -v node)" != '' ]
} }
# Make zsh glob matching behave same as bash # Make zsh glob matching behave same as bash
@ -677,7 +677,7 @@ nvm() {
fi fi
if [ "_$VERSION" = '_system' ]; then if [ "_$VERSION" = '_system' ]; then
if nvm_has_system_node && nvm deactivate >/dev/null; then if nvm_has_system_node && nvm deactivate >/dev/null 2>&1; 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