From b7fb5222ff25df742e0e4c73e51597453e548582 Mon Sep 17 00:00:00 2001 From: Wes Todd Date: Thu, 5 Dec 2019 20:02:49 -0800 Subject: [PATCH] NVM_NOUSE on install.sh to pass --no-use to nvm.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e95a2fc..2d29439 100755 --- a/install.sh +++ b/install.sh @@ -394,7 +394,11 @@ nvm_do_install() { # Source nvm # shellcheck source=/dev/null - \. "$(nvm_install_dir)/nvm.sh" + if [ -z "${NVM_NOUSE-}" ] ; then + \. "$(nvm_install_dir)/nvm.sh" + else + \. "$(nvm_install_dir)/nvm.sh" --no-use + fi nvm_check_global_modules