cmd/update.sh: update Git logic.
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
This commit is contained in:
parent
82ad6a56e9
commit
fd08ffdd67
@ -383,9 +383,7 @@ EOS
|
||||
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
|
||||
then
|
||||
ohai "Installing Homebrew Git"
|
||||
[[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git
|
||||
unset GIT_EXECUTABLE
|
||||
if ! git --version &>/dev/null
|
||||
if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && ! brew install git
|
||||
then
|
||||
odie "Git must be installed and in your PATH!"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user