Skip to content

Commit

Permalink
Fixing bug on go1.12 cmd.String() does not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
matang28 committed Nov 25, 2019
1 parent fcbea04 commit ea914f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/data/generic_script_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func (this *genericScriptEngine) Run(scriptPath string, flags map[string]string)
cmdArgs = append(cmdArgs, replyFile)

cmd := exec.Command(mainCommand, cmdArgs...)
etc.PrintInfo(fmt.Sprintf("Running '%s'", cmd.String()))

etc.PrintInfo(fmt.Sprintf("Running '%s %v'", mainCommand, cmdArgs))
result, err := cmd.CombinedOutput()
if err != nil {
if result != nil {
Expand Down

0 comments on commit ea914f5

Please sign in to comment.