fix mkdir on windows

This commit is contained in:
Michael Yang
2023-09-19 09:36:30 -07:00
parent 24580df958
commit b58d5d16b0
4 changed files with 7 additions and 7 deletions

View File

@@ -722,7 +722,7 @@ func initializeKeypair() error {
return err
}
err = os.MkdirAll(path.Dir(privKeyPath), 0o700)
err = os.MkdirAll(filepath.Dir(privKeyPath), 0o755)
if err != nil {
return fmt.Errorf("could not create directory %w", err)
}