From b9b614ec29dbb8d249a56e3a8f3290d2cfd3670a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 1 Apr 2022 16:05:24 +0200 Subject: [PATCH] store env var Co-authored-by: kobergj --- ocis-pkg/config/helpers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ocis-pkg/config/helpers.go b/ocis-pkg/config/helpers.go index 43d2396616..6eac898475 100644 --- a/ocis-pkg/config/helpers.go +++ b/ocis-pkg/config/helpers.go @@ -32,7 +32,8 @@ func DefaultConfigSources(filename string, drivers []string) []string { var sources []string locations := []string{} - if os.Getenv("OCIS_CONFIG_DIR") != "" { + if v := os.Getenv("OCIS_CONFIG_DIR"); v != "" { + locations = append(locations, v) // only use the configured config dir locations = append(locations, os.Getenv("OCIS_CONFIG_DIR")) } else {