Fixup Mkdir Errors
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
f3296ffdd9
commit
dbac41d949
|
@ -88,7 +88,7 @@ func LoadAppSettings(appDirectory string) *settings.GlobalSettingsFile {
|
||||||
// many other parts of Cwtch are likely to fail also.
|
// many other parts of Cwtch are likely to fail also.
|
||||||
globalSettingsFile, err := settings.InitGlobalSettingsFile(appDirectory, DefactoPasswordForUnencryptedProfiles)
|
globalSettingsFile, err := settings.InitGlobalSettingsFile(appDirectory, DefactoPasswordForUnencryptedProfiles)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("error initializing global globalSettingsFile file %. Global globalSettingsFile might not be loaded or saves", err)
|
log.Errorf("error initializing global globalSettingsFile file %s. Global globalSettingsFile might not be loaded or saved", err)
|
||||||
}
|
}
|
||||||
return globalSettingsFile
|
return globalSettingsFile
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,7 @@ func InitGlobalSettingsFile(directory string, password string) (*GlobalSettingsF
|
||||||
log.Errorf("Could not initialize salt: %v", err)
|
log.Errorf("Could not initialize salt: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
err := os.Mkdir(directory, 0700)
|
err := os.MkdirAll(directory, 0700)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue