Explorar o código

int32 for exit status

jamesread %!s(int64=5) %!d(string=hai) anos
pai
achega
ae11c252f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 	stdout, stderr := cmd.Output()
 
-	res.ExitCode = int64(cmd.ProcessState.ExitCode())
+	res.ExitCode = int32(cmd.ProcessState.ExitCode())
 	res.Stdout = string(stdout)
 
 	if stderr == nil {