Skip to content
Myr

[Fix] Make installation less restrictive when NVM_DIR is set

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ahmed El Sayegh · committed by Jordan Harband · parent 10f24d6 · Browse files · 1 file+11 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−2 removed

  • other:+11 added−2 removed

1 file+11 added−2 removed

modified:install.sh+11 added-2 removed
302 unmodified lines
303}304305nvm_do_install() {306 if [ -n "${NVM_DIR-}" ] && ! [ -d "${NVM_DIR}" ]; then307 if [ "${NVM_DIR}" == "$HOME/.nvm" ]; then308 if [ -e "${NVM_DIR}" ]; then309 echo >&2 "File \"${NVM_DIR}\" has the same name as installation directory."310 exit 1311 else312 mkdir "${NVM_DIR}"313 fi314 else307 echo >&2 "You have \$NVM_DIR set to \"${NVM_DIR}\", but that directory does not exist. Check your profile files and environment."308 exit 1315 echo >&2 "You have \$NVM_DIR set to \"${NVM_DIR}\", but that directory does not exist. Check your profile files and environment."316 exit 1317 fi318 fi319 if [ -z "${METHOD}" ]; then320 # Autodetect install method321 if nvm_has git; then
102 unmodified lines