Use $XDG_RUNTIME_DIR for temporary files
This commit is contained in:
parent
fde819f2e2
commit
3bea429ae8
8 changed files with 16 additions and 23 deletions
|
@ -1,7 +1,6 @@
|
|||
#! @perl@ -w @perlFlags@
|
||||
|
||||
use strict;
|
||||
use File::Temp qw(tempdir);
|
||||
use Nix::Config;
|
||||
use Nix::Utils;
|
||||
|
||||
|
@ -50,8 +49,7 @@ if ($interactive && !defined $ENV{"NIX_HAVE_TERMINAL"}) {
|
|||
}
|
||||
|
||||
|
||||
my $tmpDir = tempdir("nix-install-package.XXXXXX", CLEANUP => 1, TMPDIR => 1)
|
||||
or die "cannot create a temporary directory";
|
||||
my $tmpDir = mkTempDir("nix-install-package");
|
||||
|
||||
|
||||
sub barf {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue