From 8bf0ef473da65c436f172b2d22a376a08af4ee54 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Fri, 17 Feb 2017 19:27:37 -0700 Subject: [PATCH] Added Homebrew Casks install script. - Provides support for installing Homebrew Casks. --- bin/install_homebrew_casks | 18 ++++++++++++++++++ bin/run | 1 + lib/options.sh | 2 ++ 3 files changed, 21 insertions(+) create mode 100755 bin/install_homebrew_casks diff --git a/bin/install_homebrew_casks b/bin/install_homebrew_casks new file mode 100755 index 0000000..3a3daa5 --- /dev/null +++ b/bin/install_homebrew_casks @@ -0,0 +1,18 @@ +#! /usr/bin/env bash + +# DESCRIPTION +# Installs Homebrew Cask software. + +# SETTINGS +set -o nounset +set -o errexit +set -o pipefail +IFS=$'\n\t' +SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_homebrew_casks" + +# EXECUTION +if [[ -x "$SCRIPT_PATH" ]]; then + "$SCRIPT_PATH" +else + printf "WARNING: Homebrew Casks install script does not exist or is not executable.\n" +fi diff --git a/bin/run b/bin/run index 363da29..0c922ff 100755 --- a/bin/run +++ b/bin/run @@ -40,6 +40,7 @@ while true; do printf " b: Apply basic settings.\n" printf " t: Install development tools.\n" printf " hf: Install Homebrew Formulas.\n" + printf " hc: Install Homebrew Casks.\n" printf " m: Install Mac App Store software.\n" printf " a: Install application software.\n" printf " x: Install application software extensions.\n" diff --git a/lib/options.sh b/lib/options.sh index d411541..78f80e0 100644 --- a/lib/options.sh +++ b/lib/options.sh @@ -16,6 +16,8 @@ process_option() { bin/install_dev_tools;; 'hf') bin/install_homebrew_formulas;; + 'hc') + bin/install_homebrew_casks;; 'm') bin/install_app_store;; 'a')