mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
294d8bcb5d
* rename to sanityFix * Infra for consistency checks and Fixes. * Whitelist check moved to consistency check only. Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
30 lines
585 B
TypeScript
30 lines
585 B
TypeScript
import { sanityCheckAll, consistencyCheckAll } from "../action/update-all";
|
|
|
|
export async function main() {
|
|
var returnCode: number = 0;
|
|
|
|
try {
|
|
const ret1 = await sanityCheckAll();
|
|
if (ret1 != 0) {
|
|
returnCode = ret1;
|
|
}
|
|
} catch(err) {
|
|
console.error(err);
|
|
returnCode = 1;
|
|
}
|
|
|
|
try {
|
|
const ret1 = await consistencyCheckAll();
|
|
if (ret1 != 0) {
|
|
returnCode = ret1;
|
|
}
|
|
} catch(err) {
|
|
console.error(err);
|
|
returnCode = 1;
|
|
}
|
|
|
|
process.exit(returnCode);
|
|
}
|
|
|
|
main();
|