aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-10-17 23:03:58 +0200
committerJakob Unterwurzacher2020-10-17 23:03:58 +0200
commit95ea7383f9aeef83e6ce7a06d49d0f24857ef30a (patch)
tree2b2f59ef3bc916374cae050cd57d8f910663e3b8 /main.go
parent83a324a46bec3332c078abc3a1986969c0f94fd2 (diff)
fsck: make sure we unmount in all cases
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 61dffb2..edd61ff 100644
--- a/main.go
+++ b/main.go
@@ -329,7 +329,7 @@ func main() {
}
// "-fsck"
if args.fsck {
- fsck(&args)
- os.Exit(0)
+ code := fsck(&args)
+ os.Exit(code)
}
}