mirror of
https://github.com/clearlinux/docs.git
synced 2026-10-03 23:58:21 +00:00
Add "quit" choice to push.pl
This commit is contained in:
@@ -108,10 +108,15 @@ sub prompt_for_edit {
|
||||
|
||||
my $reply = $term->get_reply(
|
||||
prompt => 'Apply changes?',
|
||||
choices => [ qw( yes vimdiff no ) ],
|
||||
choices => [ qw( yes vimdiff no quit ) ],
|
||||
default => 'yes',
|
||||
);
|
||||
|
||||
if ($reply eq 'quit') {
|
||||
say 'quitting, as requested';
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($reply eq 'yes') {
|
||||
return $proposedText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user