Created
February 17, 2016 00:22
-
-
Save jkatayama/5176445564133b9e3952 to your computer and use it in GitHub Desktop.
Batches broken brew symlinks
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
while read path | |
do | |
if [ -f "$path" ]; then | |
echo "Pruning $path.." | |
brew prune “$path” | |
else | |
echo "$path not found" | |
fi | |
done < "$1" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment