Fix: Configuration Idiosyncrasies - It's what's for dinner!
Hopefully the last configuration related idiosyncrasy I have to address in HellPot for at least a week.
This commit is contained in:
parent
35eebac88b
commit
4c2b0ec3be
|
@ -47,6 +47,9 @@ var (
|
|||
|
||||
func writeConfig() string {
|
||||
prefConfigLocation, _ := os.UserConfigDir()
|
||||
if prefConfigLocation != "" {
|
||||
prefConfigLocation = filepath.Join(prefConfigLocation, Title)
|
||||
}
|
||||
|
||||
if prefConfigLocation == "" {
|
||||
home, _ = os.UserHomeDir()
|
||||
|
@ -59,6 +62,7 @@ func writeConfig() string {
|
|||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
Filename = filepath.Join(prefConfigLocation, "config.toml")
|
||||
|
||||
tomld, terr := toml.Parser().Marshal(snek.All())
|
||||
|
|
Loading…
Reference in New Issue