Add script for crontab to email broken links.

This commit is contained in:
Brandon Amos 2015-12-26 17:22:29 -05:00
parent d9be461349
commit e601a87adc
1 changed files with 12 additions and 0 deletions

12
util/email-broken-links.sh Executable file
View File

@ -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"