Skip to content

Commit

Permalink
fixes delimiter handling
Browse files Browse the repository at this point in the history
  • Loading branch information
arafato committed Mar 18, 2020
1 parent d93872b commit 9d02c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func expandEnvironmentVariables(args, env []string) []string {
func getValue(env []string, key string) string {
for _, item := range env {
if strings.HasPrefix(item, key) {
return strings.Split(item, "=")[1]
return strings.SplitN(item, "=", 2)[1]
}
}
return ""
Expand Down

0 comments on commit 9d02c54

Please sign in to comment.