Skip to content

Commit

Permalink
config: fix reading of config dir
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Oct 9, 2023
1 parent 7e799f2 commit 7fa0c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func parseConfigFiles() (*config.ConfigFile, error) {
if filepath.Ext(dirEntry.Name()) != ".conf" {
continue
}
if err := readTOMLFile(configName, &cfgOverlay); err != nil {
if err := readTOMLFile(filepath.Join(configDir, dirEntry.Name()), &cfgOverlay); err != nil {
return nil, fmt.Errorf("reading config: %w", err)
}
if err := conf.Merge(cfgOverlay); err != nil {
Expand Down

0 comments on commit 7fa0c41

Please sign in to comment.