mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
fix(template): do not replace words starting with .Env
This commit is contained in:
parent
c1a95f42c7
commit
e2a907e121
|
@ -50,7 +50,7 @@ func (t *textTemplate) render() (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", errors.New(invalidTemplate)
|
return "", errors.New(invalidTemplate)
|
||||||
}
|
}
|
||||||
if strings.Contains(t.Template, ".Env") {
|
if strings.Contains(t.Template, ".Env.") {
|
||||||
t.loadEnvVars()
|
t.loadEnvVars()
|
||||||
}
|
}
|
||||||
buffer := new(bytes.Buffer)
|
buffer := new(bytes.Buffer)
|
||||||
|
|
Loading…
Reference in a new issue