Update 'scripting.js'

This commit is contained in:
andreacavalli 2020-03-19 00:42:16 +01:00
parent a0aa7f22a8
commit 72e1204826

View File

@ -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}`);