Return the exit code of nvm use when nvm install-ing.

This commit is contained in:
Jordan Harband 2014-06-20 11:49:06 -07:00
parent 4c38f507f5
commit d8b55652a5

2
nvm.sh
View File

@ -352,7 +352,7 @@ nvm() {
) )
then then
nvm use $VERSION nvm use $VERSION
return; return $?
else else
echo "Binary download failed, trying source." >&2 echo "Binary download failed, trying source." >&2
rm -rf "$tmptarball" "$tmpdir" rm -rf "$tmptarball" "$tmpdir"