Skip to content
Myr

[Fix] `install`: better error message when xcode command line tools are needed

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

Fixes #2697. Fixes #2663.

authored by Jordan Harband · committed by Jordan Harband · parent 1875fe8 · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:install.sh+6 added
354 unmodified lines
355 nvm_echo >&2 "You have \$NVM_DIR set to \"${NVM_DIR}\", but that directory does not exist. Check your profile files and environment."356 exit 1357 fi358 fi359 if nvm_has xcode-select && [ "$(xcode-select -p >/dev/null 2>/dev/null ; echo $?)" = '2' ] && [ "$(which git)" = '/usr/bin/git' ] && [ "$(which curl)" = '/usr/bin/curl' ]; then360 nvm_echo >&2 'You may be on a Mac, and need to install the Xcode Command Line Developer Tools.'361 # shellcheck disable=SC2016362 nvm_echo >&2 'If so, run `xcode-select --install` and try again. If not, please report this!'363 exit 1364 fi365 if [ -z "${METHOD}" ]; then366 # Autodetect install method367 if nvm_has git; then368 install_nvm_from_git
101 unmodified lines