Created
October 17, 2015 00:14
-
-
Save ar1g/5ebae450fd4878f8a76f to your computer and use it in GitHub Desktop.
update homebrew (el capitan permissions)
This file contains hidden or 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
| #! /usr/local/bin/bash | |
| echo "1. chown SIP affected directories." | |
| echo "see https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md" | |
| sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local | |
| echo "\n2. update homebrew." | |
| brew update | |
| echo "\n3. upgrade packages." | |
| brew upgrade | |
| echo "\n4. cleanup." | |
| brew cleanup | |
| echo "\n5. homebrew doctor." | |
| brew doctor | |
| echo "\n-------\n Done! \n-------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment