commit
3401d15a18
4
nvm.sh
4
nvm.sh
|
@ -1347,6 +1347,8 @@ nvm() {
|
||||||
return 8
|
return 8
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# This nvm_ensure_version_installed call can be a performance bottleneck
|
||||||
|
# on shell startup. Perhaps we can optimize it away or make it faster.
|
||||||
nvm_ensure_version_installed "$PROVIDED_VERSION"
|
nvm_ensure_version_installed "$PROVIDED_VERSION"
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
if [ "$EXIT_CODE" != "0" ]; then
|
if [ "$EXIT_CODE" != "0" ]; then
|
||||||
|
@ -1718,7 +1720,7 @@ if nvm_supports_source_options && [ "_$1" = "_--install" ]; then
|
||||||
elif nvm_rc_version >/dev/null 2>&1; then
|
elif nvm_rc_version >/dev/null 2>&1; then
|
||||||
nvm install >/dev/null
|
nvm install >/dev/null
|
||||||
fi
|
fi
|
||||||
elif nvm ls default >/dev/null; then
|
elif nvm_alias default >/dev/null 2>&1; then
|
||||||
nvm use default >/dev/null
|
nvm use default >/dev/null
|
||||||
elif nvm_rc_version >/dev/null 2>&1; then
|
elif nvm_rc_version >/dev/null 2>&1; then
|
||||||
nvm use >/dev/null
|
nvm use >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue