Don not pring package info in grep

This commit is contained in:
Phani Teja Marupaka
2020-09-15 00:15:52 -07:00
parent 00f0fd7109
commit cea2986574
3 changed files with 10 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ func DirsWithFile(root, fileName string, recurse bool) ([]string, error) {
// else return empty list
_, err := os.Stat(filepath.Join(root, fileName))
if !os.IsNotExist(err) {
res = append(res, root)
res = append(res, filepath.Clean(root))
}
return res, nil
}