Skip to content

Commit

Permalink
Revert "remove sh"
Browse files Browse the repository at this point in the history
This reverts commit 279d621.
  • Loading branch information
rafaelsq committed Oct 15, 2021
1 parent 279d621 commit ee9d913
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/wtc/wtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,7 @@ func pipeChar(rr io.Reader, tpe, id string, isStderr bool) {
}

func run(ctx context.Context, name, command string, env []string) error {

args := strings.Fields(command)
cmd := exec.Command(args[0], args[1:]...)
cmd := exec.Command("sh", "-c", command)

stdout, tty, err := pty.Open()
if err != nil {
Expand Down

0 comments on commit ee9d913

Please sign in to comment.