io.js does not have a SunOS binary.

master
Jordan Harband 2015-01-13 17:48:15 -08:00
parent b0d6c05d6e
commit d9340b6a53
1 changed files with 12 additions and 4 deletions

16
nvm.sh
View File

@ -846,10 +846,6 @@ nvm() {
shift shift
fi fi
if [ "_$NVM_OS" = "_freebsd" ]; then
nobinary=1
fi
provided_version="$1" provided_version="$1"
if [ -z "$provided_version" ]; then if [ -z "$provided_version" ]; then
@ -903,6 +899,18 @@ nvm() {
return 3 return 3
fi fi
local NVM_IOJS
if nvm_is_iojs_version "$VERSION"; then
NVM_IOJS=true
fi
if [ "_$NVM_OS" = "_freebsd" ]; then
# node.js and io.js do not have a FreeBSD binary
nobinary=1
elif [ "_$NVM_OS" = "_sunos" ] && [ "$NVM_IOJS" = true ]; then
# io.js does not have a SunOS binary
nobinary=1
fi
# skip binary install if "nobinary" option specified. # skip binary install if "nobinary" option specified.
if [ $nobinary -ne 1 ] && nvm_install_node_binary "$VERSION" "$REINSTALL_PACKAGES_FROM"; then if [ $nobinary -ne 1 ] && nvm_install_node_binary "$VERSION" "$REINSTALL_PACKAGES_FROM"; then
if nvm use "$VERSION" \ if nvm use "$VERSION" \