Created
May 23, 2014 18:03
-
-
Save chrisfsmith/d6441371e683312b2c0d to your computer and use it in GitHub Desktop.
Relink homebrew formulas -- http://apple.stackexchange.com/questions/85480/how-should-i-fix-my-homebrew-installation-after-upgrading-os-x
This file contains 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