store env var

Co-authored-by: kobergj <jkoberg@owncloud.com>
This commit is contained in:
Jörn Friedrich Dreyer
2022-04-01 16:05:24 +02:00
committed by GitHub
parent 34fc38683b
commit b9b614ec29

View File

@@ -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 {