diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-13 23:12:57 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-13 23:12:57 +0200 |
commit | 3bea429ae8190565978104db3dbbb5e1a53fc018 (patch) | |
tree | 480747e11f2af030700075e2ad6c6677cdc2f4f1 /scripts/nix-push.in | |
parent | fde819f2e22e0fb84dc6d8fc4602a00577137d0a (diff) |
Use $XDG_RUNTIME_DIR for temporary files
Diffstat (limited to 'scripts/nix-push.in')
-rwxr-xr-x | scripts/nix-push.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in index bdd128a6f..1343099f1 100755 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -2,7 +2,6 @@ use strict; use File::Basename; -use File::Temp qw(tempdir); use File::Path qw(mkpath); use File::stat; use File::Copy; @@ -12,8 +11,7 @@ use Nix::Manifest; use Nix::Utils; use Nix::Crypto; -my $tmpDir = tempdir("nix-push.XXXXXX", CLEANUP => 1, TMPDIR => 1) - or die "cannot create a temporary directory"; +my $tmpDir = mkTempDir("nix-push"); my $nixExpr = "$tmpDir/create-nars.nix"; |