Created
January 6, 2022 17:35
-
-
Save pmarreck/df47b7df2ada055a5bf10b6f8585fd50 to your computer and use it in GitHub Desktop.
Kick/fix homebrew
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
for tab in $(grep -l -o '[a-z0-9-]*proto' $(brew --cellar)/*/*/INSTALL_RECEIPT.json) | |
do | |
formula=$(basename $(dirname $(dirname $tab))) | |
brew remove --ignore-dependencies $formula | |
brew install $formula | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment