зеркало из https://github.com/github/ruby.git
Suport ruby 1.9.3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3fa5bd38af
Коммит
be264f4a65
|
@ -91,10 +91,10 @@ else
|
|||
end
|
||||
using DebugPOpen
|
||||
module DebugSystem
|
||||
def system(*args, exception: true, **opts)
|
||||
def system(*args, **opts)
|
||||
STDERR.puts [*args, **opts].inspect if $DEBUG
|
||||
if RUBY_VERSION >= "2.6"
|
||||
opts[:exception] = exception
|
||||
opts[:exception] = true unless opts.key?(:exception)
|
||||
end
|
||||
ret = super(*args, **opts)
|
||||
raise "Command failed with status (#$?): #{args[0]}" if exception and !ret
|
||||
|
|
Загрузка…
Ссылка в новой задаче