Files
podman/pkg/env/env_unix.go
Paul Holzinger 617af9bea9 Revert "feat(env): support multiline in env-file"
This reverts commit 170a78631b4b0a0e5963e860cc3c3b297b4a7d09.

This was a breaking change and users are hitting it,
see https://github.com/containers/podman/issues/19565

Fixes #19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-04 17:06:21 +02:00

17 lines
348 B
Go

//go:build !windows
// +build !windows
package env
// ParseSlice parses the specified slice and transforms it into an environment
// map.
func ParseSlice(s []string) (map[string]string, error) {
env := make(map[string]string, len(s))
for _, e := range s {
if err := parseEnv(env, e); err != nil {
return nil, err
}
}
return env, nil
}