dont yield dirs
parent
550bace88d
commit
72fee73a00
|
|
@ -79,7 +79,13 @@ func (config config) targets() ([]string, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
result = append(result, results...)
|
||||
for i := range results {
|
||||
if stat, err := os.Stat(results[i]); err != nil {
|
||||
return nil, err
|
||||
} else if !stat.IsDir() {
|
||||
result = append(result, results[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(result) == 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue