forked from TrueCloudLab/restic
mount: return exit code 0 after receiving a SIGINT
This commit is contained in:
parent
d768c1c3e4
commit
5478ab22c5
1 changed files with 4 additions and 0 deletions
|
@ -164,6 +164,10 @@ func runMount(opts MountOptions, gopts GlobalOptions, args []string) error {
|
|||
if err != nil {
|
||||
Warnf("unable to umount (maybe already umounted or still in use?): %v\n", err)
|
||||
}
|
||||
// replace error code of sigint
|
||||
if code == 130 {
|
||||
code = 0
|
||||
}
|
||||
return code, nil
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue