dotfiles/.dotfiles/bootstrap/10_brew.sh
2024-01-25 09:47:54 +01:00

12 lines
325 B
Bash
Executable file

#!/bin/sh
# install homebrew if it's missing
if ! command -v brew >/dev/null 2>&1; then
echo "Installing homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if [ -f "$HOME/.Brewfile" ]; then
echo "Updating homebrew bundle"
brew bundle --global
fi