Skip to content

Commit 493cc16

Browse files
wesleytoddljharb
authored andcommitted
[Fix] install.sh: do not log when user has requested no profile modifications
1 parent f36516b commit 493cc16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ nvm_do_install() {
412412
COMPLETION_STR='[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion\n'
413413
BASH_OR_ZSH=false
414414

415-
if [ -z "${NVM_PROFILE-}" ] ; then
415+
if [ "${PROFILE-}" = '/dev/null' ] ; then
416+
# the user has specifically requested NOT to have nvm touch their profile
417+
echo
418+
elif [ -z "${NVM_PROFILE-}" ] ; then
416419
local TRIED_PROFILE
417420
if [ -n "${PROFILE}" ]; then
418421
TRIED_PROFILE="${NVM_PROFILE} (as defined in \$PROFILE), "

0 commit comments

Comments
 (0)