mdfind: don't strip

Since we're splitting on newlines, stripping shouldn't be necessary.
This commit is contained in:
Misty De Meo 2012-07-30 23:36:00 -03:00
parent 2056e24a12
commit 9af7e25e03

View File

@ -269,7 +269,7 @@ module MacOS extend self
end
def mdfind attribute, id
path = `mdfind "#{attribute} == '#{id}'"`.split("\n").first.strip
path = `mdfind "#{attribute} == '#{id}'"`.split("\n").first
Pathname.new(path) unless path.empty?
end