summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-10-30 09:48:57 +0200
committergit <svn-admin@ruby-lang.org>2021-11-02 00:28:28 +0900
commited0f326e88ab695507d66729e3a4441d6888910b (patch)
tree868dd43ffcc203618c78acadcee356253b70f243 /lib
parent2fa51c70683ef8198bddb3332eb62c9239cbde8f (diff)
downloadruby-ed0f326e88ab695507d66729e3a4441d6888910b.tar.gz
[rubygems/rubygems] Leave ":" after MANPATH when not set
So that system man pages still work after a gem with man pages overrides it. https://github.com/rubygems/rubygems/commit/1031879b87
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/runtime.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 31e71388a6..c7276b0e25 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -265,7 +265,7 @@ module Bundler
return if manuals.empty?
Bundler::SharedHelpers.set_env "MANPATH", manuals.concat(
- ENV["MANPATH"].to_s.split(File::PATH_SEPARATOR)
+ ENV["MANPATH"] ? ENV["MANPATH"].to_s.split(File::PATH_SEPARATOR) : [""]
).uniq.join(File::PATH_SEPARATOR)
end