Guest User

Untitled

a guest
May 26th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo Checking brew
  4. #Check if Homebrew is already installed else prompt the user to do so.
  5.  
  6. BREW_INSTALLED="/usr/local/bin/brew"
  7.  
  8.  
  9. #Variables to check if dependencies exist.
  10. HOMEBREW=$(which brew)
  11.  
  12. echo $OUTPUT
  13.  
  14. if [ "$OUTPUT" == "$BREW_INSTALLED" ]; then
  15. echo "Brew is already installed."
  16. echo "Update Brew"
  17. brew update
  18. else
  19. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  20. fi
Add Comment
Please, Sign In to add comment