Skip to content

Commit 490872a

Browse files
committed
Merge pull request #103 from hoelzro/master
Use $*TMPDIR to create temporary files
2 parents f75c070 + 7448bf7 commit 490872a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/p6doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sub findbin() returns Str {
1818
constant INDEX = findbin() ~ 'index.data';
1919

2020
sub tempfile() {
21-
my $tempfile = %*ENV<TEMP> // %*ENV<TMP> // '/tmp';
21+
my $tempfile = $*TMPDIR.Str;
2222
$tempfile ~= '/';
2323
$tempfile ~= join '', ('a'..'z', 0..9).roll(5);
2424
$tempfile ~= '.tmp';

0 commit comments

Comments
 (0)