Skip to content

Commit

Permalink
Easier way to find path to ruby binary
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jun 24, 2020
1 parent 4159451 commit cdc201f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bundler/spec/support/rubygems_version_manager.rb
Expand Up @@ -62,10 +62,7 @@ def reexec_if_needed

require "rbconfig"

ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"])
ruby << RbConfig::CONFIG["EXEEXT"]

cmd = [ruby, $0, *ARGV].compact
cmd = [RbConfig.ruby, $0, *ARGV].compact

ENV["RUBYOPT"] = opt_add("-I#{local_copy_path.join("lib")}", opt_remove("--disable-gems", ENV["RUBYOPT"]))

Expand Down

0 comments on commit cdc201f

Please sign in to comment.