We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910fee2 commit 80c50b9Copy full SHA for 80c50b9
main.go
@@ -239,5 +239,10 @@ func main() {
239
tlog.Fatal.Printf("Usage: %s [OPTIONS] CIPHERDIR MOUNTPOINT [-o COMMA-SEPARATED-OPTIONS]", tlog.ProgramName)
240
os.Exit(ErrExitUsage)
241
}
242
- os.Exit(doMount(&args))
+ ret := doMount(&args)
243
+ if ret != 0 {
244
+ os.Exit(ret)
245
+ }
246
+ // Don't call os.Exit on success to give deferred functions a chance to
247
+ // run
248
0 commit comments