mirror of
https://github.com/restic/restic.git
synced 2026-08-06 13:43:18 +00:00
Improve command shutdown on context cancellation
This commit is contained in:
@@ -197,6 +197,9 @@ func runPruneWithRepo(ctx context.Context, opts PruneOptions, gopts GlobalOption
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
if popts.DryRun {
|
||||
printer.P("\nWould have made the following changes:")
|
||||
|
||||
Reference in New Issue
Block a user