Skip to content
Myr

Silence more secondary "deactivate" output.

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 804f275 · 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
26 unmodified lines
27 fi28}2930nvm_has_system_node() {31 [ "$(nvm deactivate 2> /dev/null && command -v node)" != '' ]31 [ "$(nvm deactivate >/dev/null 2>&1 && command -v node)" != '' ]32}3334# Make zsh glob matching behave same as bash35# This fixes the "zsh: no matches found" errors
640 unmodified lines
676 return 127677 fi678679 if [ "_$VERSION" = '_system' ]; then680 if nvm_has_system_node && nvm deactivate >/dev/null; then680 if nvm_has_system_node && nvm deactivate >/dev/null 2>&1; then681 echo "Now using system version of node: $(node -v 2>/dev/null)."682 return683 else684 echo "System version of node not found." >&2
222 unmodified lines