mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
#243 Fix bug: show ENV variables
Previously only last env variable is shown
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user