diff options
Diffstat (limited to 'internal/conf/conf.go')
-rw-r--r-- | internal/conf/conf.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/conf/conf.go b/internal/conf/conf.go index 0850962e..01585f1a 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -72,12 +72,13 @@ func Init(customConf string) error { } File.NameMapper = ini.SnackCase - customConf, err = filepath.Abs(customConf) - if err != nil { - return errors.Wrap(err, "get absolute path") - } if customConf == "" { - customConf = filepath.Join(CustomDir(), "conf/app.ini") + customConf = filepath.Join(CustomDir(), "conf", "app.ini") + } else { + customConf, err = filepath.Abs(customConf) + if err != nil { + return errors.Wrap(err, "get absolute path") + } } CustomConf = customConf |