Permalink
Browse files

Fix for issue #1127: Properly display installation location as a rela…

…tive path on Windows
  • Loading branch information...
1 parent 9681b4c commit a7610c027306a155ffb67df1798bfc97beeb91a7 @tadman tadman committed May 21, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/bundler/cli.rb
View
3 lib/bundler/cli.rb
@@ -223,8 +223,7 @@ def install(path = nil)
Bundler.load.cache if Bundler.root.join("vendor/cache").exist? && !options["no-cache"]
if Bundler.settings[:path]
- relative_path = Bundler.settings[:path]
- relative_path = "./" + relative_path unless relative_path[0] == ?/
+ relative_path = File.expand_path(Bundler.settings[:path]).sub(/^#{File.expand_path('.')}/, '.')
Bundler.ui.confirm "Your bundle is complete! " +
"It was installed into #{relative_path}"
else

0 comments on commit a7610c0

Please sign in to comment.