fix: return code

This commit is contained in:
cha0s 2022-03-09 08:22:52 -06:00
parent af6a70678b
commit 23d6ba9aa3

View File

@ -60,8 +60,9 @@ else {
const forwardProcessCode = (fn) => async (...args) => {
const child = await fn(...args);
if ('object' !== typeof child) {
debug('action returned code %d', child);
process.exitCode = child;
const code = 'undefined' !== typeof child ? child : 0;
debug('action returned code %d', code);
process.exitCode = code;
return;
}
try {