Apply Mike's suggestions

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Maxim Belkin 2020-11-25 12:54:18 -06:00 committed by GitHub
parent fd08ffdd67
commit c3231a4095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,10 +368,11 @@ user account:
EOS
fi
# we may want to use a Homebrew curl
if [[ -n "$HOMEBREW_FORCE_BREWED_CURL" &&
! -x "$HOMEBREW_PREFIX/opt/curl/bin/curl" ]]
then
ohai "Installing Homebrew cURL"
# we cannot install a Homebrew cURL if homebrew/core is unavailable.
if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && ! brew install curl
then
odie "Curl must be installed and in your PATH!"
@ -382,7 +383,7 @@ EOS
[[ -n "$HOMEBREW_FORCE_BREWED_GIT" &&
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
then
ohai "Installing Homebrew Git"
# we cannot install a Homebrew Git if homebrew/core is unavailable.
if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && ! brew install git
then
odie "Git must be installed and in your PATH!"