diff options
author | Andre Arko <andre@arko.net> | 2010-04-05 17:44:28 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-05 17:44:28 -0700 |
commit | 7a7628c17188c6fbae5dbbc7f6a506b0f41c57a5 (patch) | |
tree | 06af7efea4ec5fd49b6adf88e0b2bdb2cb952efb | |
parent | 69acfd88a919de8bac222fc37a1e79d5c6dfdf6c (diff) | |
download | bundler-7a7628c17188c6fbae5dbbc7f6a506b0f41c57a5.tar.gz |
Don't duplicate gem paths
-rw-r--r-- | lib/bundler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index f9021667f0..0b0660b6d1 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -144,7 +144,7 @@ module Bundler ENV['GEM_HOME'] = File.expand_path(bundle_path, root) ENV['GEM_PATH'] = '' else - paths = [Gem.dir, Gem.path].flatten.compact.reject{|p| p.empty? } + paths = [Gem.dir, Gem.path].flatten.compact.uniq.reject{|p| p.empty? } ENV["GEM_PATH"] = paths.join(File::PATH_SEPARATOR) ENV["GEM_HOME"] = bundle_path.to_s end |