Skip to content

Commit

Permalink
[Fix] install.sh: do not log when user has requested no profile mod…
Browse files Browse the repository at this point in the history
…ifications
  • Loading branch information
wesleytodd authored and ljharb committed Dec 6, 2019
1 parent a1601ed commit 61cb9f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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), "
Expand Down

0 comments on commit 61cb9f7

Please sign in to comment.