Skip to content

Commit

Permalink
find yml files also when specified -d flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbaksmith committed Aug 22, 2019
1 parent ecd0802 commit d0d7e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func aggregateFiles(args []string) ([]string, error) {
if err != nil {
return err
}
if !info.IsDir() && strings.HasSuffix(info.Name(), ".yaml") {
if !info.IsDir() && (strings.HasSuffix(info.Name(), ".yaml") || strings.HasSuffix(info.Name(), ".yml") {
files = append(files, path)
}
return nil
Expand Down

0 comments on commit d0d7e5a

Please sign in to comment.