Skip to content

Commit

Permalink
Use correct permissions when creating config directory (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodangelis authored Apr 13, 2023
1 parent 16c7b25 commit 31df57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func New(app application.App) Config {

_, err = os.Stat(v.ConfigFileUsed())
if os.IsNotExist(err) {
if err := os.MkdirAll(filepath.Dir(v.ConfigFileUsed()), os.ModeDir); err != nil {
if err := os.MkdirAll(filepath.Dir(v.ConfigFileUsed()), os.ModeDir|os.ModePerm); err != nil {
panic(err)
}
file, err := os.Create(v.ConfigFileUsed())
Expand Down

0 comments on commit 31df57b

Please sign in to comment.