forked from trustwallet/assets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.ts
More file actions
31 lines (26 loc) · 697 Bytes
/
check.ts
File metadata and controls
31 lines (26 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { sanityCheckAll, consistencyCheckAll } from "../generic/update-all";
export async function main(): Promise<void> {
let returnCode = 0;
try {
// warnings ignored
const [errors1] = await sanityCheckAll();
if (errors1.length > 0) {
returnCode = errors1.length;
}
} catch(err) {
console.error(err);
returnCode = 1;
}
try {
// warnings ignored
const [errors1] = await consistencyCheckAll();
if (errors1.length > 0) {
returnCode = errors1.length;
}
} catch(err) {
console.error(err);
returnCode = 1;
}
process.exit(returnCode);
}
main();