diff --git a/nixos/modules/programs/command-not-found/command-not-found.pl b/nixos/modules/programs/command-not-found/command-not-found.pl index 6b59563bc2ae..306798609ec5 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.pl +++ b/nixos/modules/programs/command-not-found/command-not-found.pl @@ -49,10 +49,10 @@ if ($len == 0) { if ($ENV{"NIX_AUTO_RUN_INTERACTIVE"} // "") { while (1) { print STDERR "'$program' from package '$package' will be run, confirm? [yn]: "; - chomp(my $comfirm = ); - if (lc $comfirm eq "n") { + chomp(my $confirm = ); + if (lc $confirm eq "n") { exit 0; - } elsif (lc $comfirm eq "y") { + } elsif (lc $confirm eq "y") { last; } }