Parcourir la source

int32 for exit status

jamesread il y a 5 ans
Parent
commit
ae11c252f6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      internal/executor/executor.go

+ 1 - 1
internal/executor/executor.go

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