openface/util/email-broken-links.sh

13 lines
231 B
Bash
Raw Normal View History

#!/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"