sign-windows: If return code is non-zero, throw
This commit is contained in:
parent
3664063d71
commit
ebd5397bb5
1 changed files with 5 additions and 1 deletions
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue