2023-03-27 16:22:12 -07:00
|
|
|
#!/usr/bin/env bash
|
2023-04-15 19:06:43 -07:00
|
|
|
# @file Homebrew Install
|
2023-03-27 16:22:12 -07:00
|
|
|
# @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
|