Minor refactoring to "install from source" logic tree.

Jordan Harband 2015-09-10 22:37:50 +09:00
parent c9215a127f
commit 014a44e154
1 changed files with 5 additions and 3 deletions

8
nvm.sh
View File

@ -1442,7 +1442,11 @@ nvm() {
fi
fi
if [ "$NVM_INSTALL_SUCCESS" != true ]; then
if [ "$NVM_IOJS" = true ]; then
if [ "$NVM_IOJS" != true ] && [ "$NVM_NODE_MERGED" != true ]; then
if nvm_install_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"; then
NVM_INSTALL_SUCCESS=true
fi
elif [ "$NVM_IOJS" = true ]; then
# nvm_install_iojs_source "$VERSION" "$ADDITIONAL_PARAMETERS"
echo "Installing iojs from source is not currently supported" >&2
return 105
@ -1450,8 +1454,6 @@ nvm() {
# nvm_install_merged_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"
echo "Installing node v1.0 and greater from source is not currently supported" >&2
return 106
elif nvm_install_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"; then
NVM_INSTALL_SUCCESS=true
fi
fi