Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -166,8 +166,11 @@ def self.find_jruby
def self.find_jruby_bin_dir
# Make sure bin/ruby points to the right launcher
ruby_symlink = "#{JRUBY_DIR}/bin/ruby"
FileUtils.rm_f ruby_symlink
File.symlink Utilities.find_jruby, ruby_symlink
jruby_bin = Utilities.find_jruby
if File.symlink?(ruby_symlink) && File.expand_path(File.readlink(ruby_symlink), File.dirname(ruby_symlink)) != jruby_bin
FileUtils.rm_f ruby_symlink
File.symlink jruby_bin, ruby_symlink
end

if ENV['RUBY_BIN']
File.dirname(ENV['RUBY_BIN'])

1 comment on commit 52c268b

@chrisseaton
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.