dotfiles/.config/yadm/bootstrap.d/001_homebrew

12 lines
296 B
Text
Raw Normal View History

2022-07-17 09:33:38 -04:00
#!/bin/sh
system_type=$(uname -s)
if [ "$system_type" = "Darwin" ]; then
# install homebrew if it's missing
if ! command -v brew >/dev/null 2>&1; then
echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
fi