diff options
-rw-r--r-- | lib/bundler/source/path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 27f098a469..bcf35cc21e 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -189,7 +189,7 @@ module Bundler Bundler.ui.warn "The validation message from Rubygems was:\n #{e.message}" ensure if gem_dir && gem_file - SharedHelpers.chdir(gem_dir){ FileUtils.rm_rf(gem_file) if File.exist?(gem_file) } + FileUtils.rm_rf(gem_dir.join gem_file) end end |