From dd62dad160b38f1eeb173afc5adb5fcfea42015d Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sun, 14 Mar 2021 11:10:18 -0600 Subject: [PATCH] Added Homebrew installation to Homebrew sripts Ensures Homebrew is installed before running scripts so downstream projects don't have to remember to do this work. --- bin/install_homebrew_casks | 2 ++ bin/install_homebrew_formulas | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/install_homebrew_casks b/bin/install_homebrew_casks index 690015b..b647c49 100755 --- a/bin/install_homebrew_casks +++ b/bin/install_homebrew_casks @@ -6,9 +6,11 @@ set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' + SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_homebrew_casks" if [[ -x "$SCRIPT_PATH" ]]; then + install_homebrew "$SCRIPT_PATH" else printf "WARNING: Homebrew Casks install script does not exist or is not executable.\n" diff --git a/bin/install_homebrew_formulas b/bin/install_homebrew_formulas index a2a8a9a..c8b8563 100755 --- a/bin/install_homebrew_formulas +++ b/bin/install_homebrew_formulas @@ -6,9 +6,11 @@ set -o nounset set -o errexit set -o pipefail IFS=$'\n\t' + SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_homebrew_formulas" if [[ -x "$SCRIPT_PATH" ]]; then + install_homebrew "$SCRIPT_PATH" else printf "WARNING: Homebrew Formulas install script does not exist or is not executable.\n"