Last active
January 5, 2022 16:53
-
-
Save ryanmaclean/4094dfdbb13e43656c3d41eccdceae05 to your computer and use it in GitHub Desktop.
Check if Homebrew is Installed Via Bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check to see if Homebrew is installed, and install it if it is not | |
command -v brew >/dev/null 2>&1 || { echo >&2 "Installing Homebrew Now"; \ | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; } |
Nice !
Edit: Maybe #!/bin/sh now that Apple is switching for ZSH ?
Ah perhaps! Updated <3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!