Expand variables on parseValue

This commit is contained in:
Takumasa Sakao 2017-11-20 23:20:38 +09:00
parent 33977c2d8d
commit 50c29652a0

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 return value
} }