Skip to content

Commit

Permalink
fix: shell substitution error with exit status 127 (#88)
Browse files Browse the repository at this point in the history
* fix: shell substitution error with exit status 127
  • Loading branch information
sunggun-yu authored Nov 16, 2023
1 parent 2e340dd commit 71b7807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func processCommandSubstitutionValue(val string, envs config.Envs) (string, erro
script := strings.TrimSpace(matches[1])
cmd := exec.Command("sh", "-c", script)
// append envs to cmd that runs command substitution as well to support the case that reuse env var as ref with substitution
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, envs.Strings()...)

// output, err := cmd.CombinedOutput()
Expand Down

0 comments on commit 71b7807

Please sign in to comment.