aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/commands/install_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/commands/install_command.rb')
-rw-r--r--lib/rubygems/commands/install_command.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb
index dad19380ea..923d578a15 100644
--- a/lib/rubygems/commands/install_command.rb
+++ b/lib/rubygems/commands/install_command.rb
@@ -50,11 +50,7 @@ class Gem::Commands::InstallCommand < Gem::Command
installed_gems = []
- if options[:install_dir].nil? and RUBY_VERSION > '1.9' then
- ENV.delete 'GEM_PATH'
- else
- ENV['GEM_PATH'] = options[:install_dir] # HACK what does this do?
- end
+ ENV.delete 'GEM_PATH' if options[:install_dir].nil? and RUBY_VERSION > '1.9'
install_options = {
:env_shebang => options[:env_shebang],