diff options
Diffstat (limited to 'confirm/command.go')
-rw-r--r-- | confirm/command.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/confirm/command.go b/confirm/command.go index ef8cf6e..92a55ed 100644 --- a/confirm/command.go +++ b/confirm/command.go @@ -29,7 +29,9 @@ func (o Options) Run() error { return fmt.Errorf("unable to run confirm: %w", err) } - if m.(model).confirmation { + if m.(model).aborted { + os.Exit(130) + } else if m.(model).confirmation { os.Exit(0) } else { os.Exit(1) |