Skip to content

Commit

Permalink
Update mkdir to add parents
Browse files Browse the repository at this point in the history
  • Loading branch information
jomann09 committed Jan 15, 2024
1 parent 8e56905 commit 6a9cc67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/manager/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func updateSecrets() bool {
}

// Make sure the directory exists
os.Mkdir(config.GetConfigDirFilePath("manager"), os.ModeDir)
os.MkdirAll(config.GetConfigDirFilePath("manager"), os.ModeDir)

f := config.GetConfigDirFilePath("manager/secrets.json")
if err := os.WriteFile(f, json, 0666); err != nil {
Expand Down Expand Up @@ -62,7 +62,7 @@ func updateConfigs() bool {
}

// Make sure the directory exists
os.Mkdir(config.GetConfigDirFilePath("manager"), os.ModeDir)
os.MkdirAll(config.GetConfigDirFilePath("manager"), os.ModeDir)

// Remove all config files from manager directory, this is to make sure
// we are synced with the manager's configs
Expand Down Expand Up @@ -113,7 +113,7 @@ func updateConfigs() bool {
}

// Make sure the directory exists
err = os.Mkdir(config.GetPluginDirFilePath("manager"), os.ModeDir)
err = os.MkdirAll(config.GetPluginDirFilePath("manager"), os.ModeDir)
if err != nil {
config.Log.Error(err)
return false
Expand Down

0 comments on commit 6a9cc67

Please sign in to comment.