install.fairie/scripts/src/homebrew.sh.tmpl

15 lines
578 B
Cheetah
Raw Normal View History

#!/usr/bin/env bash
# @file scripts/homebrew.sh
# @brief Installs Homebrew on macOS and / or Linux.
# @description
# This script installs Homebrew on macOS and/or Linux machines. The script:
#
# 1. Ensures Homebrew is not already installed
# 2. Installs Homebrew headlessly if sudo privileges are already given
# 3. Prompts for the sudo password, if required
# 4. Performs some clean up and update tasks when the Homebrew installation reports an error
#
# **Note**: `https://install.doctor/brew` points to this file.
{{ include "partials" "homebrew" }}