Skip to content

Commit ad0d2a2

Browse files
committed
In noconfirm mode, default to n on sudo retry prompt.
Otherwise, when there are package conflicts, it would lead to an infinite loop.
1 parent cc90b17 commit ad0d2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trizen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ sub execute_pacman_command ($needs_root, @cmd) {
909909
}
910910

911911
note(":: Exit code: " . exit_code()) if $lconfig{debug};
912-
$term->ask_yn(prompt => "$c{bold}=>> Try again?$c{reset}", default => 'y') and redo;
912+
$term->ask_yn(prompt => "$c{bold}=>> Try again?$c{reset}", default => ($lconfig{noconfirm} ? 'n' : 'y')) and redo;
913913
}
914914
}
915915

0 commit comments

Comments
 (0)