mount: return exit code 0 after receiving a SIGINT

This commit is contained in:
Michael Eischer 2022-08-26 23:07:07 +02:00
parent d768c1c3e4
commit 5478ab22c5

View file

@ -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
})