Skip to content

Commit

Permalink
Default to y on sudo retry prompt
Browse files Browse the repository at this point in the history
I don't generally watch long builds, so I'll often often miss the sudo password prompt causing it to time out. Having a default of 'y' here makes sense (to me) as I always have to override the default and hit 'y'. Often I hit enter (as I do for all the other defaults) and the program exits without installing the package that was just build so I have to copy paste the command from trizen's output.
  • Loading branch information
robsco-git committed Jul 28, 2020
1 parent 41ee2bb commit 3afd119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trizen
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ sub execute_pacman_command ($needs_root, @cmd) {
}

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

Expand Down

0 comments on commit 3afd119

Please sign in to comment.