Skip to content

Commit

Permalink
Ignoring dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Aug 13, 2019
1 parent 8f2a949 commit 7ea4075
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cli/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ func Apply() *cobra.Command {
db := database.NewDatabase()
if fi.Mode().IsDir() {
err := filepath.Walk(v.GetString("spec-file"), func(path string, info os.FileInfo, err error) error {
if err := db.ApplySync(path); err != nil {
return err
if !info.IsDir() {
if err := db.ApplySync(path); err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit 7ea4075

Please sign in to comment.