Add script for crontab to email broken links.
This commit is contained in:
parent
d9be461349
commit
e601a87adc
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
cd $(dirname $0)
|
||||
git pull --rebase
|
||||
OUT="$(./check-links.py)"
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "$OUT" | mutt brandon.amos.cs+openface.broken@gmail.com \
|
||||
-s "Broken OpenFace Links"
|
||||
fi
|
||||
|
||||
echo "$OUT"
|
Loading…
Reference in New Issue