aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac
diff options
context:
space:
mode:
authorJack Nagel2014-07-11 15:51:19 -0500
committerJack Nagel2014-07-11 15:52:39 -0500
commitcf93f7e15901ad4493e44bfd78312aa2802a979e (patch)
treedc21c0fdd0f08a1bf2385baced34d62ec7d1e9f6 /Library/Homebrew/os/mac
parent625d891090c5d3f1ba5f9ca0a33e72d11dafa781 (diff)
downloadhomebrew-cf93f7e15901ad4493e44bfd78312aa2802a979e.tar.bz2
Read if no block is passed to Utils.popen_read
Diffstat (limited to 'Library/Homebrew/os/mac')
-rw-r--r--Library/Homebrew/os/mac/xquartz.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/xquartz.rb b/Library/Homebrew/os/mac/xquartz.rb
index eb30bca13..b48314699 100644
--- a/Library/Homebrew/os/mac/xquartz.rb
+++ b/Library/Homebrew/os/mac/xquartz.rb
@@ -57,7 +57,7 @@ module OS
def version_from_mdls(path)
version = Utils.popen_read(
- "/usr/bin/mdls", "-raw", "-nullMarker", "", "-name", "kMDItemVersion", path.to_s, &:read
+ "/usr/bin/mdls", "-raw", "-nullMarker", "", "-name", "kMDItemVersion", path.to_s
).strip
version unless version.empty?
end