Merge pull request #24 from mprimi/master

This commit is contained in:
mrusme 2021-12-29 18:38:37 -05:00 committed by GitHub
commit ee4b9c8125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ func LoadConfig() (*Config, error) {
}
configDir = filepath.Join(configDir, ".config")
}
os.MkdirAll(configDir, os.ModeDir)
os.MkdirAll(configDir, 0755)
configFile := filepath.Join(configDir, "superhighway84.toml")
@ -102,7 +102,7 @@ func (cfg *Config) Setup() (error) {
if strings.TrimSpace(cfg.CachePath) == "" {
cfg.CachePath = defaultCachePath
}
os.MkdirAll(filepath.Dir(cfg.CachePath), os.ModeDir)
os.MkdirAll(filepath.Dir(cfg.CachePath), 0755)
defaultLogfile := filepath.Join(cacheDir, "superhighway84.log")
fmt.Printf("Logfile path [%s]: ", defaultLogfile)