mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
bundlerEnv: use full path to ruby in wrappers
This commit is contained in:
parent
a83cfbfc7c
commit
c1814073ac
@ -160,7 +160,7 @@ Bundler::Installer.class_eval do
|
||||
|
||||
File.open(binstub_path, 'w', 0777 & ~File.umask) do |f|
|
||||
f.print <<-TEXT
|
||||
#!/usr/bin/env #{RbConfig::CONFIG['ruby_install_name']}
|
||||
#!#{RbConfig.ruby}
|
||||
|
||||
old_gemfile = ENV["BUNDLE_GEMFILE"]
|
||||
old_gem_home = ENV["GEM_HOME"]
|
||||
@ -206,7 +206,7 @@ Gem::Installer.class_eval do
|
||||
# Run the actual executable.
|
||||
def app_script_text(bin_file_name)
|
||||
return <<-TEXT
|
||||
#{shebang bin_file_name}
|
||||
#!#{RbConfig.ruby}
|
||||
#
|
||||
# This file was generated by Nix's RubyGems.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user