fix: update exit status when status != 0 (#68)

This commit is contained in:
ArArgon 2023-06-11 16:10:52 +08:00 committed by GitHub
parent 90de4c544c
commit 80cadb3be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ func (e *environment) Execve(c context.Context, param envexec.ExecveParam) (enve
case wstatus.Exited():
if status := wstatus.ExitStatus(); status != 0 {
p.result.Status = runner.StatusNonzeroExitStatus
p.result.ExitStatus = status
return
}
return