From 3be62dace0d887efc15afebcba818de71a73b16e Mon Sep 17 00:00:00 2001 From: ayntgl Date: Tue, 27 Sep 2022 16:26:22 +0530 Subject: [PATCH] Fix default configuration file not created on startup --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index d341c8a..e2a4aaf 100644 --- a/config/config.go +++ b/config/config.go @@ -103,7 +103,8 @@ func (cfg *Config) Load() error { func (cfg *Config) configPath() string { path, _ := os.UserConfigDir() + path = filepath.Join(path, Name) // Create the configuration directory if it does not exist already. - _ = os.MkdirAll(filepath.Join(path, Name), os.ModePerm) + _ = os.MkdirAll(path, os.ModePerm) return filepath.Join(path, "config.yml") }