From 07be57fe25a4ef3f31f1af49b87c4ed243aed38c Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 19 Sep 2017 14:59:22 +0900 Subject: [PATCH] ing --- config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) + } } }