Fix bug in reporting curl errors

This commit is contained in:
Adam Vandenberg 2011-03-14 13:30:46 -07:00
parent 80886ff34a
commit c6e069bfe5

View File

@ -78,7 +78,7 @@ end
# Kernel.system but with exceptions # Kernel.system but with exceptions
def safe_system cmd, *args def safe_system cmd, *args
unless Homebrew.system cmd, *args unless Homebrew.system cmd, *args
args = args.map{ |arg| arg.gsub " ", "\\ " } * " " args = args.map{ |arg| arg.to_s.gsub " ", "\\ " } * " "
raise "Failure while executing: #{cmd} #{args}" raise "Failure while executing: #{cmd} #{args}"
end end
end end