Navigation Menu

Skip to content

Commit

Permalink
Propagate env-shebang to "pristine" command if set for install.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Feb 17, 2012
1 parent 7206bfd commit ec9d511
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rubygems/commands/pristine_command.rb
Expand Up @@ -94,10 +94,14 @@ def execute
end

# TODO use installer options
install_defaults = Gem::ConfigFile::PLATFORM_DEFAULTS['install']
installer_env_shebang = install_defaults.to_s['--env-shebang']

installer = Gem::Installer.new(gem,
:wrappers => true,
:force => true,
:install_dir => spec.base_dir)
:install_dir => spec.base_dir,
:env_shebang => installer_env_shebang)
installer.install

say "Restored #{spec.full_name}"
Expand Down

0 comments on commit ec9d511

Please sign in to comment.