From 49781c7e3f1c145d8d8070c3d3ca9c6b7d91e427 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 1 Oct 2021 11:36:09 +0200 Subject: [PATCH] fix: ignore "env" files which don't end in .env --- pkg/config/env.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/config/env.go b/pkg/config/env.go index 8668fd78..04f47301 100644 --- a/pkg/config/env.go +++ b/pkg/config/env.go @@ -73,6 +73,11 @@ func getAllFilesInDirectory(directory string) ([]fs.FileInfo, error) { for _, file := range files { // Follow any symlinks filePath := path.Join(directory, file.Name()) + + if filepath.Ext(strings.TrimSpace(filePath)) != ".env" { + continue + } + realPath, err := filepath.EvalSymlinks(filePath) if err != nil { logrus.Warningf("broken symlink in your abra config folders: '%s'", filePath)