From 9af7e25e034e1e109f02d6ad7642c424f1e54ff1 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 30 Jul 2012 23:36:00 -0300 Subject: [PATCH] mdfind: don't strip Since we're splitting on newlines, stripping shouldn't be necessary. --- Library/Homebrew/macos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index 0441c26f29..da179de310 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