Created
July 3, 2016 15:54
-
-
Save smj10j/67583878911df3732ba9cf432ec763f9 to your computer and use it in GitHub Desktop.
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 | |
| FORMULAS=(`brew list`); | |
| for FORMULA in "${FORMULAS[@]}" | |
| do | |
| echo "brew unlink $FORMULA" && echo "brew link $FORMULA"; | |
| OUTPUT=`brew unlink $FORMULA`; | |
| echo $OUTPUT; | |
| OUTPUT=`brew link $FORMULA`; | |
| echo $OUTPUT; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment