From d8b55652a580648f3ac70e37d8ac471443e9f868 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 20 Jun 2014 11:49:06 -0700 Subject: [PATCH] Return the exit code of `nvm use` when `nvm install`-ing. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 6610aea..09b7489 100644 --- a/nvm.sh +++ b/nvm.sh @@ -352,7 +352,7 @@ nvm() { ) then nvm use $VERSION - return; + return $? else echo "Binary download failed, trying source." >&2 rm -rf "$tmptarball" "$tmpdir"