Permalink
Browse files

fixes 'instance variable @checked_for_sudo not initialized'

  • Loading branch information...
1 parent 93f23e5 commit 8dfa73496b4dc5c731602860983186e63eb9f12a @jackdempsey jackdempsey committed with indirect Feb 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler.rb
View
2 lib/bundler.rb
@@ -200,7 +200,7 @@ def 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?

0 comments on commit 8dfa734

Please sign in to comment.