Expand variables on parseValue

pull/47/head
Takumasa Sakao 2017-11-20 23:20:38 +09:00
parent 33977c2d8d
commit 50c29652a0
1 changed files with 7 additions and 0 deletions

View File

@ -291,6 +291,13 @@ func parseValue(value string, envMap map[string]string) string {
}
}
// expand variables
value = os.Expand(value, func(key string) string {
if val, ok := envMap[key]; ok {
return val
}
return ""
})
return value
}