From 61cb9f7cdba14aa1c0276082aaf122716a3e8021 Mon Sep 17 00:00:00 2001 From: Wes Todd Date: Thu, 5 Dec 2019 19:30:26 -0800 Subject: [PATCH] [Fix] `install.sh`: do not log when user has requested no profile modifications --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 49c3df3..e12d2ae 100755 --- a/install.sh +++ b/install.sh @@ -412,7 +412,10 @@ nvm_do_install() { COMPLETION_STR='[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion\n' BASH_OR_ZSH=false - if [ -z "${NVM_PROFILE-}" ] ; then + if [ "${PROFILE-}" = '/dev/null' ] ; then + # the user has specifically requested NOT to have nvm touch their profile + echo + elif [ -z "${NVM_PROFILE-}" ] ; then local TRIED_PROFILE if [ -n "${PROFILE}" ]; then TRIED_PROFILE="${NVM_PROFILE} (as defined in \$PROFILE), "