From 71a1960cafd8565617551397db1e3de3248e03c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 6 Oct 2020 21:13:57 +0200 Subject: [PATCH] Try fix another error --- bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb b/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb index 5cacfcf05f56..a00496687cc1 100644 --- a/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb +++ b/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb @@ -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