From fb215546ee5041b4146c1d0806a0390a759845c5 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 26 Jun 2014 16:52:48 -0700 Subject: [PATCH] Don't bother trying to return the exit code of `nvm alias` or `nvm_print_versions` --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 20c781a..782a432 100644 --- a/nvm.sh +++ b/nvm.sh @@ -579,7 +579,7 @@ nvm() { if [ $# -eq 1 ]; then nvm alias fi - return $NVM_LS_EXIT_CODE && $? + return $NVM_LS_EXIT_CODE ;; "ls-remote" | "list-remote" ) nvm_print_versions "`nvm_ls_remote $2`"