diff options
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"; |