Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try to avoid creating temp dirs in the current working directory (…
…#571) Try to use `mktemp -d` before falling back to calling mktemp with an explicit template (for compat. with some BSD variants of mktemp (see #176)). Testing shows shows that this fixes temp dirs being created in the current working directory on systems using a recent current GNU coreutils mktemp variant and on systems using the mktemp variant packaged with some macOS versions (e.g. 10.15). This may also fix the issue on other systems as well (see https://stackoverflow.com/a/2792789).
- Loading branch information