fsck: suppress "no problems found" when running quiet
Passing "-q" now disables the "fsck summary: no problems found\n" message.
This commit is contained in:
parent
52c9ff1ded
commit
283184dd5a
2
fsck.go
2
fsck.go
@ -171,7 +171,7 @@ func fsck(args *argContainer) {
|
|||||||
ck.dir("")
|
ck.dir("")
|
||||||
wipeKeys()
|
wipeKeys()
|
||||||
if len(ck.corruptList) == 0 {
|
if len(ck.corruptList) == 0 {
|
||||||
fmt.Printf("fsck summary: no problems found\n")
|
tlog.Info.Printf("fsck summary: no problems found\n")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Printf("fsck summary: %d corrupt files\n", len(ck.corruptList))
|
fmt.Printf("fsck summary: %d corrupt files\n", len(ck.corruptList))
|
||||||
|
Loading…
Reference in New Issue
Block a user