Compare commits

...

2 Commits

Author SHA1 Message Date
Wes Todd
e150b3842a
Merge 61cb9f7cdb into 759f70f196 2025-02-14 09:27:25 +01:00
Wes Todd
61cb9f7cdb
[Fix] install.sh: do not log when user has requested no profile modifications 2019-12-05 19:30:26 -08:00

View File

@ -428,7 +428,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), "