about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/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 eaa706578117..16a0b09f59cf 100755
--- a/scripts/nix-collect-garbage.in
+++ b/scripts/nix-collect-garbage.in
@@ -10,7 +10,7 @@ my $invert = 0;
 
 foreach my $arg (@ARGV) {
     if ($arg eq "--keep-successors") { $keepsuccessors = 1; }
-    if ($arg eq "--invert") { $invert = 1; }
+    elsif ($arg eq "--invert") { $invert = 1; }
     else { die "unknown argument `$arg'" };
 }