diff options
author | Andre Arko <andre@arko.net> | 2014-04-01 20:48:55 +0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-04-01 20:48:55 +0800 |
commit | 7392d04c8016b6cab3d78a2b245564292c29cb50 (patch) | |
tree | 89ef7cf63d9a6456c4dec6d7c93ac368e2a0ec7a | |
parent | 4f0003ba76f08364303dda3a6338334c5e7d1f7b (diff) | |
download | bundler-7392d04c8016b6cab3d78a2b245564292c29cb50.tar.gz |
handle the fact that bundler doesn't get installed
-rw-r--r-- | lib/bundler/source/rubygems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index d3d576fb18..afeee2b077 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -122,7 +122,7 @@ module Bundler installed_spec.loaded_from = spec.loaded_from ["Installing #{version_message(spec)}", spec.post_install_message] ensure - if defined?(install_path) && Bundler.requires_sudo? + if install_path && Bundler.requires_sudo? FileUtils.remove_entry_secure(install_path) end end |