mdfind: don't strip
Since we're splitting on newlines, stripping shouldn't be necessary.
This commit is contained in:
parent
2056e24a12
commit
9af7e25e03
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user