aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 1fa081419..2b496565c 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -133,8 +133,7 @@ def interactive_shell(f = nil)
end
module Homebrew
- def self.system(cmd, *args)
- puts "#{cmd} #{args*" "}" if ARGV.verbose?
+ def self._system(cmd, *args)
pid = fork do
yield if block_given?
args.collect!(&:to_s)
@@ -145,6 +144,11 @@ module Homebrew
$?.success?
end
+ def self.system(cmd, *args)
+ puts "#{cmd} #{args*" "}" if ARGV.verbose?
+ _system(cmd, *args)
+ end
+
def self.git_head
HOMEBREW_REPOSITORY.cd { `git rev-parse --verify -q HEAD 2>/dev/null`.chuzzle }
end
@@ -213,7 +217,7 @@ end
# prints no output
def quiet_system(cmd, *args)
- Homebrew.system(cmd, *args) do
+ Homebrew._system(cmd, *args) do
# Redirect output streams to `/dev/null` instead of closing as some programs
# will fail to execute if they can't write to an open stream.
$stdout.reopen("/dev/null")