summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/cli.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 3ef0e28f26..d0398c712d 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -130,10 +130,11 @@ module Bundler
end]
if man_pages.include?(command)
+ man_page = man_pages[command]
if Bundler.which("man") && man_path !~ %r{^file:/.+!/META-INF/jruby.home/.+}
- Kernel.exec "man #{man_pages[command]}"
+ Kernel.exec "man #{man_page}"
else
- puts File.read("#{man_path}/#{File.basename(man_pages[command])}.txt")
+ puts File.read("#{man_path}/#{File.basename(man_page)}.txt")
end
elsif command_path = Bundler.which("bundler-#{cli}")
Kernel.exec(command_path, "--help")