1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00

Only install Homebrew if it's not already installed

This commit is contained in:
Daniel Barber 2019-04-15 21:44:53 -04:00
parent 532a08598d
commit 25447c2c60
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -1,3 +1,8 @@
#!/bin/sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if ! type brew > /dev/null; then
/usr/bin/ruby -e \
"$(curl \
-fsSL \
https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi