Fix setting HUGO_MODULE_PROXY etc. via env vars

Fixes #7903
This commit is contained in:
Bjørn Erik Pedersen
2020-10-29 16:22:35 +01:00
parent 6d95dc9d74
commit 8a1c637c44
4 changed files with 32 additions and 1 deletions

View File

@@ -37,7 +37,11 @@ func getNested(m map[string]interface{}, indices []string) (interface{}, string,
first := indices[0]
v, found := m[strings.ToLower(cast.ToString(first))]
if !found {
if len(indices) == 1 {
return nil, first, m
}
return nil, "", nil
}
if len(indices) == 1 {