diff options
author | Smit Shah <who828@gmail.com> | 2014-03-02 11:28:15 +0530 |
---|---|---|
committer | Smit Shah <who828@gmail.com> | 2014-03-02 11:28:15 +0530 |
commit | 7e577f6edf9f82cd0a47ea76007648948f394d56 (patch) | |
tree | 844e44c76eef656e0b4d7ab6b4f937dd731447dd /lib/bundler.rb | |
parent | c3dc13e9b616b1d892c278a375b41f1cbb6090a5 (diff) | |
download | bundler-7e577f6edf9f82cd0a47ea76007648948f394d56.tar.gz |
Just check all the files in build_info
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index d499c0b4..de182dea 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -278,8 +278,8 @@ module Bundler bin_dir = bin_dir.parent until bin_dir.exist? # if any directory is not writable, we need sudo - dirs = [path, bin_dir] | Dir[path.join('build_info/*').to_s] | Dir[path.join('*').to_s] - sudo_needed = dirs.any?{|d| !File.writable?(d) } + files = [path, bin_dir] | Dir[path.join('build_info/*').to_s] + sudo_needed = files.any?{|f| !File.writable?(f) } end @requires_sudo_ran = true |