Browse Source

Add telelog notification when intergrals are running out

Samuel Čavoj 3 years ago
parent
commit
6c7b6853c5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      update.sh

+ 4 - 0
update.sh

@@ -5,6 +5,10 @@ if [ ! -e public/index.html ]; then
     ln -s "../iotd.html" "public/index.html"
 fi
 
+(if [ `wc -l integrals/input | awk '{print $1}'` -le "5" ] && hash telelog 2>/dev/null; then
+    telelog "Running out of integrals!"
+fi) &
+
 if [ ! -s "integrals/input" ]; then exit 1; fi
 head -n1 "integrals/input" | tee "equation.tex" | tee -a "integrals/used"
 sed -i '1d' "integrals/input"