...SplitN, not SplitAfterN
This commit is contained in:
@@ -16,8 +16,8 @@ func envListToMap(envs []string) (envMap map[string]string) {
|
||||
envMap = make(map[string]string, 0)
|
||||
|
||||
for _, ev := range envs {
|
||||
kv = strings.SplitAfterN(ev, "=", 2)
|
||||
// I *think* SplitAfterN does this for me, but...
|
||||
kv = strings.SplitN(ev, "=", 2)
|
||||
// I *think* SplitN does this for me, but...
|
||||
if len(kv) == 1 {
|
||||
kv = append(kv, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user