aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-07-30 23:36:00 -0300
committerMisty De Meo2012-07-30 23:36:00 -0300
commit7fee581c281889eee24e7cf5a24113bdc9d738d2 (patch)
tree647423d49697ebd84b0c2d1082bd3deaf08f531c /Library
parente7d031fa42b64bffb3186b103b797e3497d2e3a2 (diff)
downloadhomebrew-7fee581c281889eee24e7cf5a24113bdc9d738d2.tar.bz2
mdfind: don't strip
Since we're splitting on newlines, stripping shouldn't be necessary.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 0441c26f2..da179de31 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -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