From d02ca42759706015c0db6cf4d4046913caff6f9e Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Thu, 29 Sep 2022 19:06:11 +0800 Subject: [PATCH] bootstrap: homebrew: Initial commit --- .config/yadm/bootstrap.d/homebrew.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .config/yadm/bootstrap.d/homebrew.sh diff --git a/.config/yadm/bootstrap.d/homebrew.sh b/.config/yadm/bootstrap.d/homebrew.sh new file mode 100755 index 0000000..fa6cb2b --- /dev/null +++ b/.config/yadm/bootstrap.d/homebrew.sh @@ -0,0 +1,13 @@ +# macOS ONLY + +source $HOME/.zshenv + +if [[ "$OSNAME" == "macOS" ]]; then + # macOS + if ! command -v brew &> /dev/null; then + echo 'Installing Homebrew' + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + fi + + echo 'Homebrew is installed' +fi