Address review comments.

This commit is contained in:
Maxim Belkin 2020-11-24 20:59:46 -06:00
parent 2b6c1e220d
commit 82ad6a56e9
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -368,12 +368,14 @@ user account:
EOS
fi
set -e
if [[ -n "$HOMEBREW_FORCE_BREWED_CURL" &&
! -x "$HOMEBREW_PREFIX/opt/curl/bin/curl" ]]
then
ohai "Installing Homebrew cURL"
brew install curl
if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && ! brew install curl
then
odie "Curl must be installed and in your PATH!"
fi
fi
if ! git --version &>/dev/null ||
@ -381,14 +383,14 @@ EOS
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
then
ohai "Installing Homebrew Git"
brew install git
[[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git
unset GIT_EXECUTABLE
if ! git --version &>/dev/null
then
odie "Git must be installed and in your PATH!"
fi
fi
set +e
export GIT_TERMINAL_PROMPT="0"
export GIT_SSH_COMMAND="ssh -oBatchMode=yes"