Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tool/jt.rb
Original file line number Diff line number Diff line change
@@ -70,7 +70,12 @@ def self.find_ruby
if ENV["RUBY_BIN"]
ENV["RUBY_BIN"]
else
"ruby"
version = `ruby -e 'print RUBY_VERSION' 2>/dev/null`
if version.start_with?("2.")
"ruby"
else
find_jruby
end
end
end

0 comments on commit aaf2b01

Please sign in to comment.