Skip to content

Commit

Permalink
create cache directory (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jun 19, 2021
1 parent 5a34db7 commit 7b9f316
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ func run(args []string) {
}
log.Debugln("Finished loading templates")

// Create cache directory
log.Debugf("Making cache directory %s", cliFlags.CacheDirectory)
if err := os.MkdirAll(cliFlags.CacheDirectory, os.FileMode(0755)); err != nil {
log.Fatal(err)
}

// Create the global output file
log.Debug("Creating global config")
globalFile, err := os.Create(path.Join(cliFlags.CacheDirectory, "bird.conf"))
Expand Down

0 comments on commit 7b9f316

Please sign in to comment.