Fixing "nvm alias" output redirection.
parent
6c89e96f67
commit
a2633e5980
2
nvm.sh
2
nvm.sh
|
@ -891,7 +891,7 @@ nvm() {
|
||||||
local DEST
|
local DEST
|
||||||
for ALIAS_PATH in "$NVM_DIR"/alias/"$2"*; do
|
for ALIAS_PATH in "$NVM_DIR"/alias/"$2"*; do
|
||||||
ALIAS="$(basename "$ALIAS_PATH")"
|
ALIAS="$(basename "$ALIAS_PATH")"
|
||||||
DEST="$(nvm_alias "$ALIAS" 2&>1 /dev/null)"
|
DEST="$(nvm_alias "$ALIAS" 2&>1 > /dev/null)"
|
||||||
if [ -n "$DEST" ]; then
|
if [ -n "$DEST" ]; then
|
||||||
VERSION="$(nvm_version "$DEST")"
|
VERSION="$(nvm_version "$DEST")"
|
||||||
if [ "_$DEST" = "_$VERSION" ]; then
|
if [ "_$DEST" = "_$VERSION" ]; then
|
||||||
|
|
Loading…
Reference in New Issue