Skip to content

Commit

Permalink
Try fix another error
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 6, 2020
1 parent 82357c5 commit 71a1960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb
Expand Up @@ -13,14 +13,14 @@

class Bundler::Dir < Dir

@@systmpdir ||= defined?(Etc.systmpdir) ? Etc.systmpdir : '/tmp'
@systmpdir ||= defined?(Etc.systmpdir) ? Etc.systmpdir : '/tmp'

##
# Returns the operating system's temporary file path.

def self.tmpdir
tmp = nil
['TMPDIR', 'TMP', 'TEMP', ['system temporary path', @@systmpdir], ['/tmp']*2, ['.']*2].each do |name, dir = ENV[name]|
['TMPDIR', 'TMP', 'TEMP', ['system temporary path', @systmpdir], ['/tmp']*2, ['.']*2].each do |name, dir = ENV[name]|
next if !dir
dir = File.expand_path(dir)
stat = File.stat(dir) rescue next
Expand Down

0 comments on commit 71a1960

Please sign in to comment.