Skip to content

Commit

Permalink
🐞 fix(sh): allow newline env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
WAY29 committed May 10, 2022
1 parent e563401 commit 8af6361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/root/sh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func CmdSH(args []string) {
outputs := *output.GetOutputs()
envs := make([]string, 0, len(outputs))
for name, value := range outputs {
envs = append(envs, name+"="+value)
envs = append(envs, fmt.Sprintf(`%s=%s`, name, strings.ReplaceAll(value, "\n", "\\n")))
}
envs = append(envs, os.Environ()...)

Expand Down

0 comments on commit 8af6361

Please sign in to comment.