diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2018-04-03 20:38:14 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2018-04-03 20:38:14 +0200 |
| commit | 3405fb8a4a0b1b1fefd7c9e3117d43c1721ee331 (patch) | |
| tree | 80478cc220cd0b7dc76cf55127b292d1c3fd8a2c /hooks/pre-push | |
| parent | ffa9611551cba179a565b3e01eb8df62c70507fc (diff) | |
| download | memory-leaks-3405fb8a4a0b1b1fefd7c9e3117d43c1721ee331.tar.xz | |
Check URLs before pushing
Will probably come back to bite me when some URL will *literally*
contain "TODO".
Diffstat (limited to 'hooks/pre-push')
| -rwxr-xr-x | hooks/pre-push | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hooks/pre-push b/hooks/pre-push new file mode 100755 index 0000000..d0c019d --- /dev/null +++ b/hooks/pre-push @@ -0,0 +1,5 @@ +#/bin/bash + +echo "Checking for unresolved links…" + +! grep -Er '^\[.*\]:.*TODO.*' |
