Clean up logic a bit.

master
Jordan Harband 2015-04-04 14:53:38 -07:00
parent 108f630732
commit a1a8e5a51b
1 changed files with 3 additions and 5 deletions

8
nvm.sh
View File

@ -261,14 +261,12 @@ nvm_remote_version() {
}
nvm_remote_versions() {
local NVM_IOJS_PREFIX="$(nvm_iojs_prefix)"
local NVM_IOJS_PREFIX
NVM_IOJS_PREFIX="$(nvm_iojs_prefix)"
local PATTERN
PATTERN="$1"
if [ "_$PATTERN" = "_io.js" ]; then
PATTERN="$NVM_IOJS_PREFIX"
fi
case "_$PATTERN" in
"_$NVM_IOJS_PREFIX")
"_$NVM_IOJS_PREFIX" | "_io.js")
VERSIONS="$(nvm_ls_remote_iojs)"
;;
"_$(nvm_node_prefix)")