prole/knoe/scripts/install_prole_homebrew.sh
chrisfu 4ee2b259c9 Checkpoint: rename installer to knoe + harden db build context
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks)

- Update UI and core actions to use ~/.prole/build and shared copy helper

- Add/adjust tests and scripts; introduce knoe ops helpers and update manifests

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-22 01:45:21 -07:00

18 lines
469 B
Bash

#!/bin/bash
# Prole Installer: Homebrew
# Ensures Homebrew is present and up to date on macOS
set -euo pipefail
echo "[prole] Checking Homebrew..."
if ! command -v brew >/dev/null 2>&1; then
echo "[prole] Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "[prole] Homebrew present; updating taps and packages..."
brew update
brew upgrade || true
fi
echo "[prole] Homebrew OK"