mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
* Clean up calls to system().
This commit is contained in:
parent
76c9710091
commit
68ae953d8a
8 changed files with 26 additions and 26 deletions
|
@ -227,7 +227,7 @@ writeManifest $manifest, \%narFiles, \%patches;
|
|||
sub copyFile {
|
||||
my $src = shift;
|
||||
my $dst = shift;
|
||||
system("cp '$src' '$dst.tmp'") == 0 or die "cannot copy file";
|
||||
system("@coreutils@/cp", $src, "$dst.tmp") == 0 or die "cannot copy file";
|
||||
rename("$dst.tmp", "$dst") or die "cannot rename file";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue