diff --git a/config.go b/config.go index 8b24c38..1dd390d 100644 --- a/config.go +++ b/config.go @@ -104,9 +104,10 @@ func (c *config) getConfigFiles(files ...string) []string { for _, file := range files { // check configuration - pFile := filepath.Join(c.configPath, file) - if exists(pFile) { - results = append(results, pFile) + if absin, err := absPathify(filepath.Join(c.configPath, file)); nil == err { + if exists(absin) { + results = append(results, absin) + } } }