We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 040dc85 commit 2d0808aCopy full SHA for 2d0808a
repertory/repertory.go
@@ -69,10 +69,13 @@ func generateInstallationData() {
69
70
func writeStore(configFilePath string) {
71
configPath := filepath.Dir(configFilePath)
72
- // Create dir if not present
73
- if _, err := os.Stat(configPath); os.IsNotExist(err) {
74
- os.MkdirAll(configPath, 0755)
+
+ // Create config dir if not present,
+ // MkdirAll will retrun no error if the path already exists
75
+ if err := os.MkdirAll(configPath, os.FileMode(0755)); err != nil {
76
+ feedback.Errorf("Error creating repertory dir: %v", err)
77
}
78
79
// Create file if not present
80
err := Store.WriteConfigAs(configFilePath)
81
if err != nil {
0 commit comments