about summary refs log tree commit diff
path: root/scripts/nix-collect-garbage.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-collect-garbage.in')
-rw-r--r--scripts/nix-collect-garbage.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-collect-garbage.in b/scripts/nix-collect-garbage.in
index 81975d2d3c4d..f1ea09b8ee93 100644
--- a/scripts/nix-collect-garbage.in
+++ b/scripts/nix-collect-garbage.in
@@ -29,7 +29,7 @@ if ($removeOld) {
         $name = $profilesDir . "/" . $name;
         if (-l $name && (readlink($name) =~ /link/)) {
             print STDERR "removing old generations of profile $name\n";
-            system "@bindir@/nix-env", "-p", $name, "--delete-generations", "old";
+            system("@bindir@/nix-env", "-p", $name, "--delete-generations", "old");
         }
     }