#243 Fix bug: show ENV variables

Previously only last env variable is shown
This commit is contained in:
Sergey Ponomarev
2020-12-09 23:06:14 +02:00
parent b32f90fa4a
commit f2c28c5fb0
3 changed files with 12 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ func (e *Single) SetWidth(w int) { e.Width = w }
func (e *Single) SetMeta(m models.Meta) {
for k, v := range m {
if k == "[ENV-VAR]" {
e.Env.Set(k, v)
e.Env.Set(v)
} else {
e.Info.Set(k, v)
}