aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2010-06-16 13:17:54 +0100
committerMax Howell2012-03-09 12:09:37 +0000
commitd9f1be7ef270458b38d9b41d64d0d807dbabd405 (patch)
tree1ecc5891fa03bf4044389adc82ffba33cf7742c0
parentf939a2c8b249d6fee560349fd5c7348bd16e47bb (diff)
downloadbrew-d9f1be7ef270458b38d9b41d64d0d807dbabd405.tar.bz2
Use original system function for gcc check
-rw-r--r--install_homebrew.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/install_homebrew.rb b/install_homebrew.rb
index 793186f15..ee2042ab0 100644
--- a/install_homebrew.rb
+++ b/install_homebrew.rb
@@ -45,11 +45,9 @@ end
def warn warning
puts "#{Tty.red}Warning#{Tty.reset}: #{warning.chomp}"
end
-
-alias :system_orig :system
def system *args
- abort "Failed during: #{args.shell_s}" unless system_orig *args
+ abort "Failed during: #{args.shell_s}" unless Kernel.system *args
end
def sudo *args
@@ -128,4 +126,4 @@ end
ohai "Installation successful!"
warn "/usr/local/bin is not in your PATH." unless ENV['PATH'].split(':').include? '/usr/local/bin'
-warn "Now install Xcode." unless system "/usr/bin/which gcc"
+warn "Now install Xcode." unless Kernel.system "/usr/bin/which -s gcc"