aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/checkPeople.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/checkPeople.js b/bin/checkPeople.js
index 60527b9..3c564a4 100644
--- a/bin/checkPeople.js
+++ b/bin/checkPeople.js
@@ -26,4 +26,11 @@ if (!(person.entries && person.entries.length > 0)) {
throw `${actor} is missing entries!`;
}
+for (const entry of person.entries) {
+ const {link} = entry;
+ if (!(link.startsWith("http") || fs.existsSync(link))) {
+ throw `${link} not found!`;
+ }
+}
+
console.log("Checked!");