Skip to content

Commit

Permalink
🔒 fix dir permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
zcubbs authored and zakaria.elbouwab committed Nov 21, 2024
1 parent 5baf38b commit 99c2a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (c *Client) RepoAdd(name, url string) error {
repoFile := c.Settings.RepositoryConfig

//Ensure the file directory exists as it is required for file locking
err := os.MkdirAll(filepath.Dir(repoFile), os.ModePerm)
err := os.MkdirAll(filepath.Dir(repoFile), 0750)
if err != nil && !os.IsExist(err) {
return fmt.Errorf("failed to create directory %s: %w", filepath.Dir(repoFile), err)
}
Expand Down

0 comments on commit 99c2a87

Please sign in to comment.