[DOC] Tweek a comment
This commit is contained in:
parent
44d2b59491
commit
d42a8d6602
@ -5,8 +5,8 @@ template = "rubytest."
|
|||||||
if (tmpdir = Dir.mktmpdir(template)).size > 50 and File.directory?("/tmp")
|
if (tmpdir = Dir.mktmpdir(template)).size > 50 and File.directory?("/tmp")
|
||||||
# On macOS, the default TMPDIR is very long, inspite of UNIX socket
|
# On macOS, the default TMPDIR is very long, inspite of UNIX socket
|
||||||
# path length is limited.
|
# path length is limited.
|
||||||
# On Windows, UNIX socket is not available and no need to shorten
|
# Assume "/tmp" always exists on UNIX-like systems where UNIX socket
|
||||||
# TMPDIR, otherwise assume "/tmp" always exists.
|
# is available, otherwise no need to shorten TMPDIR.
|
||||||
Dir.rmdir(tmpdir)
|
Dir.rmdir(tmpdir)
|
||||||
tmpdir = Dir.mktmpdir(template, "/tmp")
|
tmpdir = Dir.mktmpdir(template, "/tmp")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user