Skip to content

Commit

Permalink
[DOC] Tweek a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 22, 2024
1 parent 44d2b59 commit d42a8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/lib/_tmpdir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
if (tmpdir = Dir.mktmpdir(template)).size > 50 and File.directory?("/tmp")
# On macOS, the default TMPDIR is very long, inspite of UNIX socket
# path length is limited.
# On Windows, UNIX socket is not available and no need to shorten
# 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.
Dir.rmdir(tmpdir)
tmpdir = Dir.mktmpdir(template, "/tmp")
end
Expand Down

0 comments on commit d42a8d6

Please sign in to comment.