int32 for exit status

This commit is contained in:
jamesread 2021-05-18 21:57:31 +01:00
parent 37b10902cb
commit ae11c252f6
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func ExecAction(action string) *pb.StartActionResponse {
cmd := exec.CommandContext(ctx, "sh", "-c", actualAction.Shell)
stdout, stderr := cmd.Output()
res.ExitCode = int64(cmd.ProcessState.ExitCode())
res.ExitCode = int32(cmd.ProcessState.ExitCode())
res.Stdout = string(stdout)
if stderr == nil {