update dependency

This commit is contained in:
link
2022-01-26 10:44:55 +08:00
parent d1ab7261a6
commit 3c9b410693
7 changed files with 17 additions and 15 deletions

View File

@@ -101,6 +101,7 @@ func ExecSmartCTLByPath(path string) []byte {
output, err := exec.CommandContext(ctx, "smartctl", "-a", path, "-j").Output()
if err != nil {
fmt.Println("smartctl", err)
fmt.Println("output", string(output))
return nil
}
return output