Skip to content
Snippets Groups Projects
Unverified Commit e63feb79 authored by Jack Haden-Enneking's avatar Jack Haden-Enneking Committed by GitHub
Browse files

Simplify check before git install

No need to check for both variables, because they're always set together.
Also, this harmonizes with the CURL equivalent just above.
parent 596f29aa
No related branches found
No related tags found
No related merge requests found
......@@ -384,9 +384,8 @@ EOS
fi
if ! git --version &>/dev/null ||
[[ ( -n "$HOMEBREW_SYSTEM_GIT_TOO_OLD" ||
-n "$HOMEBREW_FORCE_BREWED_GIT" ) &&
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
[[ -n "$HOMEBREW_FORCE_BREWED_GIT" &&
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
then
# we cannot install brewed git if homebrew/core is unavailable.
[[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment