Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pkg/synthesize.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"

"github.com/flosch/pongo2/v6"
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
Expand Down Expand Up @@ -103,8 +102,7 @@ func SynthesizePipelineConfigurationFile(pipeline Pipeline, outDir string) (stri
func runCommands(workdir string, commands []string) error {
var err error
for _, instr := range commands {
cag := strings.Split(instr, " ")
cmd := exec.Command(cag[0], cag[1:]...)
cmd := exec.Command("bash", "-c", instr)
cmd.Dir = workdir
if err = cmd.Run(); err != nil {
return fmt.Errorf("error running command '%s': %w", instr, err)
Expand Down