Skip to content

Commit

Permalink
fix env variables with equal sign
Browse files Browse the repository at this point in the history
Signed-off-by: Bram.Cautaerts <[email protected]>
  • Loading branch information
Bram.Cautaerts committed Sep 28, 2023
1 parent 408bcdf commit 07b0c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/venom/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func initFromEnv(environ []string) ([]string, error) {
if strings.HasPrefix(env, "VENOM_VAR_") {
tuple := strings.Split(env, "=")
k := strings.TrimPrefix(tuple[0], "VENOM_VAR_")
variables = append(variables, fmt.Sprintf("%v=%v", k, cast(tuple[1])))
variables = append(variables, fmt.Sprintf("%v=%v", k, cast(strings.Join(tuple[1:], "="))))
}
}

Expand Down

0 comments on commit 07b0c74

Please sign in to comment.