mirror of
https://github.com/mrusme/superhighway84.git
synced 2024-11-05 06:01:04 +00:00
Merge pull request #24 from mprimi/master
This commit is contained in:
commit
ee4b9c8125
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user