[Refactor] Improve if conditoion logic in "use"
parent
9a6e657e53
commit
450088e51a
4
nvm.sh
4
nvm.sh
|
@ -2697,12 +2697,10 @@ nvm() {
|
||||||
nvm_echo "Now using system version of io.js: $(iojs --version 2>/dev/null)$(nvm_print_npm_version)"
|
nvm_echo "Now using system version of io.js: $(iojs --version 2>/dev/null)$(nvm_print_npm_version)"
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
else
|
elif [ $NVM_USE_SILENT -ne 1 ]; then
|
||||||
if [ $NVM_USE_SILENT -ne 1 ]; then
|
|
||||||
nvm_err 'System version of node not found.'
|
nvm_err 'System version of node not found.'
|
||||||
fi
|
fi
|
||||||
return 127
|
return 127
|
||||||
fi
|
|
||||||
elif [ "_$VERSION" = "_∞" ]; then
|
elif [ "_$VERSION" = "_∞" ]; then
|
||||||
if [ $NVM_USE_SILENT -ne 1 ]; then
|
if [ $NVM_USE_SILENT -ne 1 ]; then
|
||||||
nvm_err "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting."
|
nvm_err "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting."
|
||||||
|
|
Loading…
Reference in New Issue