Skip to content

Commit

Permalink
Add back cleaning of kibanaBuildDir
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed May 1, 2019
1 parent 93d8db0 commit d650124
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-tools/mage/kibana.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const kibanaBuildDir = "build/kibana"
// index patterns based on the fields.yml file. It outputs to build/kibana.
// Use PackageKibanaDashboardsFromBuildDir() with this.
func KibanaDashboards(moduleDirs ...string) error {
if err := os.RemoveAll(kibanaBuildDir); err != nil {
return err
}
if err := os.MkdirAll(kibanaBuildDir, 0755); err != nil {
return err
}
Expand Down

0 comments on commit d650124

Please sign in to comment.