From a2633e5980511cf0d59ba4106325dab6a6a0f83f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 8 Oct 2014 23:51:45 -0700 Subject: [PATCH] Fixing "nvm alias" output redirection. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index d8e6329..90b29cf 100644 --- a/nvm.sh +++ b/nvm.sh @@ -891,7 +891,7 @@ nvm() { local DEST for ALIAS_PATH in "$NVM_DIR"/alias/"$2"*; do ALIAS="$(basename "$ALIAS_PATH")" - DEST="$(nvm_alias "$ALIAS" 2&>1 /dev/null)" + DEST="$(nvm_alias "$ALIAS" 2&>1 > /dev/null)" if [ -n "$DEST" ]; then VERSION="$(nvm_version "$DEST")" if [ "_$DEST" = "_$VERSION" ]; then