Merge pull request #4678 from sjackman/mdfind
OS::Mac.mdfind: No need to guard on OS.mac?
This commit is contained in:
commit
b2bfa6247f
@ -252,7 +252,6 @@ module OS
|
||||
end
|
||||
|
||||
def mdfind(*ids)
|
||||
return [] unless OS.mac?
|
||||
(@mdfind ||= {}).fetch(ids) do
|
||||
@mdfind[ids] = Utils.popen_read("/usr/bin/mdfind", mdfind_query(*ids)).split("\n")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user