mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-31 01:45:50 +08:00
Add iojs support to nvm_remote_version
This commit is contained in:
8
nvm.sh
8
nvm.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user