Fix `nvm_resolve_alias default` from 7d22e0c458
parent
758141f41e
commit
6c1a310846
19
nvm.sh
19
nvm.sh
|
@ -422,11 +422,20 @@ nvm_resolve_alias() {
|
|||
done
|
||||
|
||||
if [ -n "$ALIAS" ] && [ "_$ALIAS" != "_$PATTERN" ]; then
|
||||
if [ "_$ALIAS" = "_∞" ]; then
|
||||
echo "$ALIAS"
|
||||
else
|
||||
nvm_ensure_version_prefix "$ALIAS"
|
||||
fi
|
||||
local NVM_IOJS_PREFIX
|
||||
NVM_IOJS_PREFIX="$(nvm_iojs_prefix)"
|
||||
local NVM_NODE_PREFIX
|
||||
NVM_NODE_PREFIX="$(nvm_node_prefix)"
|
||||
case "_$ALIAS" in
|
||||
"_∞" | \
|
||||
"_$NVM_IOJS_PREFIX" | "_$NVM_IOJS_PREFIX-" | \
|
||||
"_$NVM_NODE_PREFIX" )
|
||||
echo "$ALIAS"
|
||||
;;
|
||||
*)
|
||||
nvm_ensure_version_prefix "$ALIAS"
|
||||
;;
|
||||
esac
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue