Add iojs support to nvm_remote_version

This commit is contained in:
Jordan Harband
2015-01-13 02:22:22 -08:00
parent d70f0357f5
commit 58ab2c3128
2 changed files with 28 additions and 7 deletions

8
nvm.sh
View File

@@ -207,8 +207,12 @@ nvm_remote_version() {
local PATTERN
PATTERN="$1"
local VERSION
VERSION="$(nvm_ls_remote "$PATTERN" | tail -n1)"
echo "$VERSION"
if nvm_is_iojs_version "$PATTERN"; then
VERSION="$(nvm_ls_remote_iojs "$PATTERN")"
else
VERSION="$(nvm_ls_remote "$PATTERN")"
fi
echo "$VERSION" | tail -n1
if [ "_$VERSION" = '_N/A' ]; then
return 3