openface/util/email-broken-links.sh

13 lines
231 B
Bash
Executable File

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