Skip to content

Commit

Permalink
Update cmd/root.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Song <[email protected]>
  • Loading branch information
R and wolfogre authored Apr 21, 2023
1 parent 57a9f25 commit 24298dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,11 @@ func bugReport(ctx context.Context, version string) error {
for _, p := range commonSocketPaths {
if _, err := os.Lstat(os.ExpandEnv(p)); err != nil {
continue
} else if _, err := os.Stat(os.ExpandEnv(p)); err != nil {
report += fmt.Sprintf("\t%s(broken)\n", p)
} else {
report += fmt.Sprintf("\t%s\n", p)
}
report += fmt.Sprintf("\t%s\n", p)
}

report += sprintf("Config files:", "")
Expand Down

0 comments on commit 24298dd

Please sign in to comment.