sign-windows: If return code is non-zero, throw

This commit is contained in:
Scott Nonnenberg 2023-11-03 15:44:34 -07:00
parent 3664063d71
commit ebd5397bb5

View file

@ -25,7 +25,11 @@ export async function sign(
const target = await realpath(configuration.path);
// The script will update the file in-place
execSync(`bash ${scriptPath} ${target}`, {
const returnCode = execSync(`bash ${scriptPath} ${target}`, {
stdio: [null, process.stdout, process.stderr],
});
if (returnCode) {
throw new Error(`sign-windows: Script returned code ${returnCode}`);
}
}