when using .nvmrc, $2 is undefined/empty

Issue #1201
This commit is contained in:
Robb Wagoner 2016-09-08 15:01:46 -07:00
parent fb853614a7
commit b08db106c4

2
nvm.sh
View File

@ -1343,7 +1343,7 @@ nvm() {
return 8
fi
nvm_ensure_version_installed "$2"
nvm_ensure_version_installed "$VERSION"
EXIT_CODE=$?
if [ "$EXIT_CODE" != "0" ]; then
return $EXIT_CODE