Fix an output redirection error.

master
Jordan Harband 2014-10-06 16:18:21 -07:00
parent 035334fd34
commit 1ee708b79b
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -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