Skip to content

Commit 44f85ef

Browse files
Merge pull request #254 from sei-protocol/checks/fix-brokenlinks-script
Fix broken link checker not exiting
2 parents ef43e15 + ef0b627 commit 44f85ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/checkLinks.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ async function main() {
1616
throw new Error(`Found broken links: ${brokenLinks.size} broken links.`);
1717
}
1818
console.info('Finished checking links');
19+
await browserInstance.close();
1920
}
2021

2122
async function crawlPages(url: string, browser: Browser, path: string) {
@@ -95,4 +96,7 @@ async function getLinksFromPage(page: Page, path: string) {
9596
});
9697
}
9798

98-
main().then(() => console.log('Finished checks'));
99+
main().then(() => {
100+
console.info('No broken links found.');
101+
process.exit(0);
102+
});

0 commit comments

Comments
 (0)