Fix bug in reporting curl errors
This commit is contained in:
parent
80886ff34a
commit
c6e069bfe5
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user