Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
check for extensions_dir during bundle pristine
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Oct 5, 2018
1 parent 5bf0bc5 commit e6de3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/cli/pristine.rb
Expand Up @@ -33,7 +33,7 @@ def run
if extension_cache_path = source.extension_cache_path(spec)
FileUtils.rm_rf extension_cache_path
end
FileUtils.rm_rf spec.extension_dir
FileUtils.rm_rf spec.extension_dir if spec.respond_to?(:extension_dir)
FileUtils.rm_rf spec.full_gem_path
else
Bundler.ui.warn("Cannot pristine #{gem_name}. Gem is sourced from local path.")
Expand Down

0 comments on commit e6de3b9

Please sign in to comment.