Make test 'Running "nvm use foo" where "foo" is circular aborts' work again

Slight problem with the output. The test expected an alias to be returned, but an empty string was returned.
This commit is contained in:
LoveIsGrief 2014-11-16 17:04:40 +01:00
parent c485417bd8
commit 7c1d4b1297

2
nvm.sh
View File

@ -837,7 +837,7 @@ nvm() {
return 127
fi
elif [ "_$VERSION" = "_∞" ]; then
echo "The alias \"$1\" leads to an infinite loop. Aborting." >&2
echo "The alias \"$key\" leads to an infinite loop. Aborting." >&2
return 8
fi