Created
May 8, 2017 08:27
-
-
Save munho/6ac412f2aa77384637c79a7e525b8b36 to your computer and use it in GitHub Desktop.
reinstall homebrew
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
| #!/bin/bash | |
| # https://github.com/Homebrew/homebrew/issues/31125 | |
| for i in `brew list -1` | |
| do | |
| if [[ "$i" == python.* ]] || [[ "$i" == ruby.* ]] || [[ "$i" == android-* ]] | |
| then | |
| continue | |
| fi | |
| brew rm --force $i && brew install $i | |
| #echo $i | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment