* Don't do a chdir to $tmpDir. It's not necessary, and Windows doesn't
support deleting the current directory.
This commit is contained in:
parent
4bbbe25802
commit
e839802720
|
@ -85,8 +85,6 @@ my $targetPath = $ARGV[1];
|
||||||
my $tmpDir = tempdir("nix-download.XXXXXX", CLEANUP => 1, TMPDIR => 1)
|
my $tmpDir = tempdir("nix-download.XXXXXX", CLEANUP => 1, TMPDIR => 1)
|
||||||
or die "cannot create a temporary directory";
|
or die "cannot create a temporary directory";
|
||||||
|
|
||||||
chdir $tmpDir or die "cannot change to `$tmpDir': $!";
|
|
||||||
|
|
||||||
my $tmpNar = "$tmpDir/nar";
|
my $tmpNar = "$tmpDir/nar";
|
||||||
my $tmpNar2 = "$tmpDir/nar2";
|
my $tmpNar2 = "$tmpDir/nar2";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue