summaryrefslogtreecommitdiff
path: root/repo/hooks/check-links.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-03-12 22:40:41 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-03-12 22:40:41 +0100
commit9dfca25455dbac7fad721bac44daa9d9a149475a (patch)
tree3fca1408fc63a679486365f7f2c12c7be590c110 /repo/hooks/check-links.sh
parentd1ae8a072d5de600d24409ed1c02c6fdf95b566c (diff)
downloadmemory-leaks-9dfca25455dbac7fad721bac44daa9d9a149475a.tar.xz
Make hooks easier to setup & maintain
By giving them meaningful names and adding a master script to call them all.
Diffstat (limited to 'repo/hooks/check-links.sh')
-rwxr-xr-xrepo/hooks/check-links.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/repo/hooks/check-links.sh b/repo/hooks/check-links.sh
new file mode 100755
index 0000000..5681326
--- /dev/null
+++ b/repo/hooks/check-links.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+echo "Checking for unresolved links…"
+
+! grep -Er '^\[.*\]:.*TODO.*'