Don't chdir just to do a glob

This commit is contained in:
Jack Nagel 2014-03-11 18:45:55 -05:00
parent da26203912
commit 9030c19418

View File

@ -87,9 +87,7 @@ class Keg < Pathname
end
def plist_installed?
Dir.chdir self do
not Dir.glob("*.plist").empty?
end
not Dir.glob("#{self}/*.plist").empty?
end
def python_site_packages_installed?