lib/bundler.rb in bundler-1.0.10 vs lib/bundler.rb in bundler-1.0.11

- old
+ new

@@ -198,10 +198,10 @@ def default_lockfile SharedHelpers.default_lockfile end def requires_sudo? - return @requires_sudo if @checked_for_sudo + return @requires_sudo if defined?(@checked_for_sudo) && @checked_for_sudo path = bundle_path path = path.parent until path.exist? sudo_present = !(`which sudo` rescue '').empty?