Fail on homebrew install error

This commit is contained in:
Laura Hausmann 2023-02-16 22:30:53 +01:00
parent 7a6743af95
commit 9cac58b945
Signed by untrusted user: zotan
GPG key ID: D044E84C5BE01605

View file

@ -1,8 +1,11 @@
#!/bin/bash
echo "--- Installing homebrew ---"
set -e
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
set +e
echo "--- Downloading Brewfile ---"
mkdir -P ~/Projects