We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86c8313 commit 783c9b2Copy full SHA for 783c9b2
tool/jt.rb
@@ -35,10 +35,16 @@ def self.find_graal
35
module ShellUtils
36
private
37
38
+ def raw_sh(*args)
39
+ unless system(*args)
40
+ $stderr.puts "FAILED (#{$?}): #{args * ' '}"
41
+ exit $?.exitstatus
42
+ end
43
44
+
45
def sh(*args)
46
Dir.chdir(JRUBY_DIR) do
- system(*args)
- raise 'failed' unless $? == 0
47
+ raw_sh(*args)
48
end
49
50
@@ -106,7 +112,7 @@ def run(*args)
106
112
jruby_args += %w[-J-XX:+UnlockDiagnosticVMOptions -J-XX:CompileCommand=print,*::callRoot]
107
113
108
114
109
- exec(env_vars, "#{JRUBY_DIR}/bin/jruby", *jruby_args, *args)
115
+ raw_sh(env_vars, "#{JRUBY_DIR}/bin/jruby", *jruby_args, *args)
110
116
111
117
118
def test(*args)
0 commit comments