Merge pull request #13895 from calavera/fix_get_env_split
Correct getEnv split.
This commit is contained in:
commit
f27c9bc6e7
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func InitContainer(c *Command) *configs.Config {
|
|||
|
||||
func getEnv(key string, env []string) string {
|
||||
for _, pair := range env {
|
||||
parts := strings.Split(pair, "=")
|
||||
parts := strings.SplitN(pair, "=", 2)
|
||||
if parts[0] == key {
|
||||
return parts[1]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue