Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo Checking brew
- #Check if Homebrew is already installed else prompt the user to do so.
- BREW_INSTALLED="/usr/local/bin/brew"
- #Variables to check if dependencies exist.
- HOMEBREW=$(which brew)
- echo $OUTPUT
- if [ "$OUTPUT" == "$BREW_INSTALLED" ]; then
- echo "Brew is already installed."
- echo "Update Brew"
- brew update
- else
- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- fi
Add Comment
Please, Sign In to add comment