Use original system function for gcc check
This commit is contained in:
parent
f939a2c8b2
commit
d9f1be7ef2
@ -46,10 +46,8 @@ def warn warning
|
|||||||
puts "#{Tty.red}Warning#{Tty.reset}: #{warning.chomp}"
|
puts "#{Tty.red}Warning#{Tty.reset}: #{warning.chomp}"
|
||||||
end
|
end
|
||||||
|
|
||||||
alias :system_orig :system
|
|
||||||
|
|
||||||
def system *args
|
def system *args
|
||||||
abort "Failed during: #{args.shell_s}" unless system_orig *args
|
abort "Failed during: #{args.shell_s}" unless Kernel.system *args
|
||||||
end
|
end
|
||||||
|
|
||||||
def sudo *args
|
def sudo *args
|
||||||
@ -128,4 +126,4 @@ end
|
|||||||
ohai "Installation successful!"
|
ohai "Installation successful!"
|
||||||
|
|
||||||
warn "/usr/local/bin is not in your PATH." unless ENV['PATH'].split(':').include? '/usr/local/bin'
|
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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user