Created
January 11, 2017 20:50
-
-
Save witsch/906c4aab6dcc4eeaa3506d693c311bbb to your computer and use it in GitHub Desktop.
Shell script to migrate symlinks created by Homebrew (see https://github.com/caskroom/homebrew-cask/issues/21913)
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 | |
which gfind || brew install findutils | |
gfind ~/Applications/ ~/Library/ /usr/local/ -type l -lname '/opt/homebrew-cask/*' -printf "ln -vsf '%l' '%p'\n" |\ | |
sed s,/opt/homebrew-cask/,/usr/local/, |\ | |
bash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment