diff --git a/cmd/restic/cleanup.go b/cmd/restic/cleanup.go index a08127b1d..728883452 100644 --- a/cmd/restic/cleanup.go +++ b/cmd/restic/cleanup.go @@ -64,7 +64,10 @@ func CleanupHandler(c <-chan os.Signal) { fmt.Fprintf(stderr, "%ssignal %v received, cleaning up\n", ClearLine(), s) code := 0 - if s != syscall.SIGINT { + + if s == syscall.SIGINT { + code = 130 + } else { code = 1 }