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" ]]
|
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
|
||||||
then
|
then
|
||||||
ohai "Installing Homebrew Git"
|
ohai "Installing Homebrew Git"
|
||||||
[[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git
|
if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && ! brew install git
|
||||||
unset GIT_EXECUTABLE
|
|
||||||
if ! git --version &>/dev/null
|
|
||||||
then
|
then
|
||||||
odie "Git must be installed and in your PATH!"
|
odie "Git must be installed and in your PATH!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user