aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 443458f2d9..22fca7fdf4 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -123,6 +123,8 @@ module Bundler
end
man_path = File.expand_path("../../../man", __FILE__)
+ # man files are located under the share directory with the default gems of bundler
+ man_path = File.expand_path("../../../../../share/man/man1", __FILE__) unless File.directory?(man_path)
man_pages = Hash[Dir.glob(File.join(man_path, "*")).grep(/.*\.\d*\Z/).collect do |f|
[File.basename(f, ".*"), f]
end]