diff --git a/scripting.js b/scripting.js index 5c61532..a687413 100644 --- a/scripting.js +++ b/scripting.js @@ -27,7 +27,8 @@ async function bash(bashScript, options) { for await (const chunk of child.stderr) { error += chunk; } - const exitCode = await new Promise( (resolve, reject) => { child.on('close', resolve); }); + + const exitCode = await new Promise((resolve, reject) => child.on('close', resolve)); if (exitCode) { throw new Error( `subprocess error exit ${exitCode}, ${error}`);