diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index acfc04ada7..c594843f6d 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -101,7 +101,7 @@ class Tab < OpenStruct paths << f.linked_keg.resolved_path end - if f.rack.directory? && (dirs = f.rack.subdirs).length == 1 + if (dirs = f.installed_prefixes).length == 1 paths << dirs.first end