2020-08-10 08:56:41 +00:00
|
|
|
import { sanityCheckAll, consistencyCheckAll } from "../action/update-all";
|
2020-08-06 19:17:38 +00:00
|
|
|
|
|
|
|
export async function main() {
|
2020-08-10 08:56:41 +00:00
|
|
|
var returnCode: number = 0;
|
|
|
|
|
2020-08-06 19:17:38 +00:00
|
|
|
try {
|
2020-08-10 08:56:41 +00:00
|
|
|
const ret1 = await sanityCheckAll();
|
|
|
|
if (ret1 != 0) {
|
|
|
|
returnCode = ret1;
|
|
|
|
}
|
2020-08-06 19:17:38 +00:00
|
|
|
} catch(err) {
|
|
|
|
console.error(err);
|
2020-08-10 08:56:41 +00:00
|
|
|
returnCode = 1;
|
2020-08-06 19:17:38 +00:00
|
|
|
}
|
2020-08-10 08:56:41 +00:00
|
|
|
|
|
|
|
try {
|
|
|
|
const ret1 = await consistencyCheckAll();
|
|
|
|
if (ret1 != 0) {
|
|
|
|
returnCode = ret1;
|
|
|
|
}
|
|
|
|
} catch(err) {
|
|
|
|
console.error(err);
|
|
|
|
returnCode = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
process.exit(returnCode);
|
2020-08-06 19:17:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main();
|