Skip to content

Instantly share code, notes, and snippets.

@jkatayama
Created February 17, 2016 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkatayama/5176445564133b9e3952 to your computer and use it in GitHub Desktop.
Save jkatayama/5176445564133b9e3952 to your computer and use it in GitHub Desktop.
Batches broken brew symlinks
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