diff options
| author | Chad Catlett | 2014-01-13 09:10:28 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-11 20:27:05 -0800 |
| commit | eedb1699ec3b01e466c31c53ef21aa004f41c49c (patch) | |
| tree | 9e7e80c4e42a7d643e0d8d371b65d7ad8e5d5a1a /Library | |
| parent | 6d6ed680f616f9129e2c6a9fd8d70fc017f6c548 (diff) | |
| download | homebrew-eedb1699ec3b01e466c31c53ef21aa004f41c49c.tar.bz2 | |
Use HOMEBREW_PREFIX/opt to find installs instead of symlinks in bin, lib, sbin.
Closes #25868.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-which.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Contributions/cmd/brew-which.rb b/Library/Contributions/cmd/brew-which.rb index b3318ee76..fede4f888 100755 --- a/Library/Contributions/cmd/brew-which.rb +++ b/Library/Contributions/cmd/brew-which.rb @@ -8,13 +8,9 @@ module Homebrew extend self real_cellar = HOMEBREW_CELLAR.realpath - paths=%w[bin sbin lib].collect {|d| HOMEBREW_PREFIX+d} - - paths.each do |path| - path.find do |path| - next unless path.symlink? && path.resolved_path_exists? - brew_links << Pathname.new(path.realpath) - end + (HOMEBREW_PREFIX/'opt').subdirs.each do |path| + next unless path.symlink? && path.resolved_path_exists? + brew_links << Pathname.new(path.realpath) end brew_links = brew_links.collect{|p|p.relative_path_from(real_cellar).to_s}.reject{|p|p.start_with?("../")} |
