aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorSmit Shah <who828@gmail.com>2014-03-01 14:26:20 +0530
committerSmit Shah <who828@gmail.com>2014-03-01 14:26:20 +0530
commitd4a6ad5f9b4e60dfd9736c8a74931ab45bf06436 (patch)
tree9e87f1bf97ae88f4a212a4e3fb0f21c38db7080d /lib/bundler.rb
parentaad165a34a621edf17e937068f311bfef3663cd9 (diff)
downloadbundler-d4a6ad5f9b4e60dfd9736c8a74931ab45bf06436.tar.gz
Just learned any? iterates all the elements in the list
This reverts commit aad165a34a621edf17e937068f311bfef3663cd9.
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 68603948..eef79b3c 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -279,7 +279,7 @@ module Bundler
# if any directory is not writable, we need sudo
dirs = [path, bin_dir] | Dir[path.join('*').to_s]
- sudo_needed = dirs.any?{|d| !File.writable?(d) }
+ sudo_needed = dirs.find{|d| !File.writable?(d) }
end
@requires_sudo_ran = true