Merge 61cb9f7cdba14aa1c0276082aaf122716a3e8021 into 5dc31ac51b08f910a2de1596b37a6a3dddd5e7b7

This commit is contained in:
Wes Todd 2024-10-07 20:13:07 +05:30 committed by GitHub
commit 154c4d1995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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), "