mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
fix(install): detect xcode-select git stub on fresh macOS
This commit is contained in:
parent
357db76b40
commit
69bea59556
1 changed files with 2 additions and 1 deletions
|
|
@ -757,7 +757,8 @@ attempt_install_git() {
|
|||
check_git() {
|
||||
log_info "Checking Git..."
|
||||
|
||||
if command -v git &> /dev/null; then
|
||||
# On fresh macOS /usr/bin/git is a stub that exits non-zero until CLT is installed.
|
||||
if command -v git &> /dev/null && git --version &> /dev/null; then
|
||||
GIT_VERSION=$(git --version | awk '{print $3}')
|
||||
log_success "Git $GIT_VERSION found"
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue