diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-10-29 16:22:35 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-10-30 09:41:04 +0100 |
commit | 8a1c637c4494751046142e0ef345fce38fc1431b (patch) | |
tree | 43847875b05e6261ca204c3c565fc84db7f63bde /hugolib/config.go | |
parent | 6d95dc9d74681cba53b46e79c6e1d58d27fcdfb0 (diff) | |
download | hugo-8a1c637c4494751046142e0ef345fce38fc1431b.tar.gz hugo-8a1c637c4494751046142e0ef345fce38fc1431b.zip |
Fix setting HUGO_MODULE_PROXY etc. via env vars
Fixes #7903
Diffstat (limited to 'hugolib/config.go')
-rw-r--r-- | hugolib/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index 7500dfc72..72b51272b 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -198,6 +198,8 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid } else { v.Set(key, val) } + } else if nestedKey != "" { + owner[nestedKey] = valStr } else { v.Set(key, valStr) } |