We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d2b59 commit d42a8d6Copy full SHA for d42a8d6
tool/lib/_tmpdir.rb
@@ -5,8 +5,8 @@
5
if (tmpdir = Dir.mktmpdir(template)).size > 50 and File.directory?("/tmp")
6
# On macOS, the default TMPDIR is very long, inspite of UNIX socket
7
# path length is limited.
8
- # On Windows, UNIX socket is not available and no need to shorten
9
- # TMPDIR, otherwise assume "/tmp" always exists.
+ # Assume "/tmp" always exists on UNIX-like systems where UNIX socket
+ # is available, otherwise no need to shorten TMPDIR.
10
Dir.rmdir(tmpdir)
11
tmpdir = Dir.mktmpdir(template, "/tmp")
12
end
0 commit comments