Permalink
Browse files

Wrapper now uses /usr/bin/env ruby shebang again

  • Loading branch information...
1 parent e1fae28 commit 649234adc0cc1035b1135c566f5e09b9b4d68555 @fabien committed Sep 28, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/minigems/script_helper.rb
@@ -127,7 +127,7 @@ def remove_minigems!
def interpolate_wrapper(gem_name, executable_name, mode = 'minigems')
@template_code ||= File.read(File.join(minigems_path, 'lib', 'minigems', 'executable_wrapper'))
vars = { 'GEM_NAME' => gem_name, 'EXECUTABLE_NAME' => executable_name }
- vars['SHEBANG'] = "#!#{Gem.ruby}"
+ vars['SHEBANG'] = "#!/usr/bin/env " + Gem::ConfigMap[:ruby_install_name]
vars['GEM_MODE'] = mode
vars.inject(@template_code) { |str,(k,v)| str.gsub(k,v) }
end

0 comments on commit 649234a

Please sign in to comment.