check in compiled file

This commit is contained in:
Alex Dima 2021-10-08 09:35:24 +02:00
parent 1f9771c104
commit 0eaaf654c8
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9

View file

@ -69,9 +69,17 @@ function main([esrpCliPath, type, cert, username, password, folderPath, pattern]
'-r', 'true',
'-e', keyFile,
];
cp.spawnSync('dotnet', args, { stdio: 'inherit' });
try {
cp.execFileSync('dotnet', args, { stdio: 'inherit' });
}
catch (err) {
console.error('ESRP failed');
console.error(err);
process.exit(1);
}
}
exports.main = main;
if (require.main === module) {
main(process.argv.slice(2));
process.exit(0);
}