aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/popen.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/popen.rb b/Library/Homebrew/utils/popen.rb
index 1463df530..64dee8ddf 100644
--- a/Library/Homebrew/utils/popen.rb
+++ b/Library/Homebrew/utils/popen.rb
@@ -3,6 +3,10 @@ module Utils
popen(args, "rb", &block)
end
+ def self.popen_read_text(*args, &block)
+ popen(args, "r", &block)
+ end
+
def self.popen_write(*args, &block)
popen(args, "wb", &block)
end