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

20 lines
679 B
Cheetah
Raw Normal View History

#!/usr/bin/env bash
# @file Homebrew Install
# @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.
2023-11-27 14:53:29 -08:00
{{ include "partials" "logg" }}
{{ include "partials" "basic-deps" -}}
ensureBasicDeps
2023-11-12 20:53:44 -08:00
{{ include "partials" "homebrew" -}}
2023-11-27 14:53:29 -08:00
ensureHomebrew