Skip to content

Commit

Permalink
Update internal/pkg/agent/cmd/container.go
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Laterman <[email protected]>
  • Loading branch information
belimawr and michel-laterman authored Jun 18, 2024
1 parent e46948b commit a6d91b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/agent/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ func setPaths(statePath, configPath, logsPath, socketPath string, writePaths boo
if configPath == "" {
configPath = statePath
}
if _, err := os.Stat(configPath); os.IsNotExist(err) {
if _, err := os.Stat(configPath); errors.Is(err, fs.ErrNotExist) {
if err := os.MkdirAll(configPath, 0755); err != nil {
return fmt.Errorf("cannot create folders for config path '%s': %w", configPath, err)
}
Expand Down

0 comments on commit a6d91b0

Please sign in to comment.