fix: typo comfirm -> confirm in command-not-found.pl

This commit is contained in:
luojiyin
2026-03-01 14:00:38 +08:00
parent e55d8d63bf
commit 859fe63fee
@@ -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 = <STDIN>);
if (lc $comfirm eq "n") {
chomp(my $confirm = <STDIN>);
if (lc $confirm eq "n") {
exit 0;
} elsif (lc $comfirm eq "y") {
} elsif (lc $confirm eq "y") {
last;
}
}