diff --git a/nvm.sh b/nvm.sh index 3723b8d..6f835fa 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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)")