[refactor] improved bootstrap time

Fixes #860, closes #927.
Kilian Ciuffolo 2015-12-06 23:52:40 -08:00 committed by Jordan Harband
parent 605a305300
commit 6638ac3318
1 changed files with 3 additions and 5 deletions

4
nvm.sh
View File

@ -1836,12 +1836,10 @@ nvm() {
command rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current"
fi
local NVM_USE_OUTPUT
if [ $NVM_USE_SILENT -ne 1 ]; then
if nvm_is_iojs_version "$VERSION"; then
if [ $NVM_USE_SILENT -ne 1 ]; then
NVM_USE_OUTPUT="Now using io.js $(nvm_strip_iojs_prefix "$VERSION")$(nvm_print_npm_version)"
fi
else
if [ $NVM_USE_SILENT -ne 1 ]; then
NVM_USE_OUTPUT="Now using node $VERSION$(nvm_print_npm_version)"
fi
fi