Skip to content

Commit

Permalink
Merge branch 'main' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Jun 21, 2024
2 parents 20c41be + 4c2b0ec commit 14ba022
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ var (

func writeConfig() string {
prefConfigLocation, _ := os.UserConfigDir()
if prefConfigLocation != "" {
prefConfigLocation = filepath.Join(prefConfigLocation, Title)
}

if prefConfigLocation == "" {
home, _ = os.UserHomeDir()
Expand All @@ -63,6 +66,7 @@ func writeConfig() string {
os.Exit(1)
}
}

Filename = filepath.Join(prefConfigLocation, "config.toml")

tomld, terr := toml.Parser().Marshal(snek.All())
Expand Down

0 comments on commit 14ba022

Please sign in to comment.