Skip to content

Commit

Permalink
Attempt to install Homebrew if it is missing
Browse files Browse the repository at this point in the history
CI build types: *macos*
  • Loading branch information
mbautin committed Sep 25, 2024
1 parent b22c1cb commit aba4637
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build_and_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ if [[ $OSTYPE == darwin* ]]; then

brew_path=$homebrew_prefix/bin/brew
if [[ ! -f $brew_path ]]; then
fatal "Homebrew not found at $brew_path"
log "Homebrew not found at $brew_path, attempting to install"

/bin/bash -c "$(
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
)"
if [[ ! -f $brew_path ]]; then
fatal "Failed to install Homebrew at $brew_path"
fi
fi

log "Homebrew packages explicitly installed by the user:"
Expand Down

0 comments on commit aba4637

Please sign in to comment.