Skip to content

Commit

Permalink
Merge pull request #24 from Arkweid/wrap-commands-in-sh
Browse files Browse the repository at this point in the history
wrap runner in shell context
  • Loading branch information
Abroskin Alexander authored Jul 10, 2019
2 parents 1da165a + a6ba624 commit 78ac14d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ func executeCommand(hooksGroup, commandName string, wg *sync.WaitGroup) {
runner = strings.Replace(runner, subAllFiles, strings.Join(files, " "), -1)
runner = strings.Replace(runner, subFiles, strings.Join(files, " "), -1)

runnerArg := strings.Split(runner, " ")
command := exec.Command(runnerArg[0], runnerArg[1:]...)
command := exec.Command("sh", "-c", runner)
command.Stdin = os.Stdin

ptyOut, err := pty.Start(command)
Expand Down

0 comments on commit 78ac14d

Please sign in to comment.