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
|
done
|
||||||
|
|
||||||
if [ -n "$ALIAS" ] && [ "_$ALIAS" != "_$PATTERN" ]; then
|
if [ -n "$ALIAS" ] && [ "_$ALIAS" != "_$PATTERN" ]; then
|
||||||
if [ "_$ALIAS" = "_∞" ]; then
|
local NVM_IOJS_PREFIX
|
||||||
echo "$ALIAS"
|
NVM_IOJS_PREFIX="$(nvm_iojs_prefix)"
|
||||||
else
|
local NVM_NODE_PREFIX
|
||||||
nvm_ensure_version_prefix "$ALIAS"
|
NVM_NODE_PREFIX="$(nvm_node_prefix)"
|
||||||
fi
|
case "_$ALIAS" in
|
||||||
|
"_∞" | \
|
||||||
|
"_$NVM_IOJS_PREFIX" | "_$NVM_IOJS_PREFIX-" | \
|
||||||
|
"_$NVM_NODE_PREFIX" )
|
||||||
|
echo "$ALIAS"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
nvm_ensure_version_prefix "$ALIAS"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue