aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorXu Cheng2015-11-29 15:40:45 +0800
committerXu Cheng2015-11-29 20:24:30 +0800
commitf442510787a55869ff50cbe935d329c18670ccf3 (patch)
tree4c31e42aede8be84eec1903ce0ebcd3950908bf8 /Library/Homebrew/tab.rb
parentfade4af0502743410c98fa5de59a1657e1f3c4a8 (diff)
downloadbrew-f442510787a55869ff50cbe935d329c18670ccf3.tar.bz2
tab: use installed_prefixes
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index acfc04ada..c594843f6 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