about summary refs log tree commit diff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r--scripts/nix-push.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index f11cd1f46f83..02b1dec482a3 100644
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -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";
 }