main
fanta 2 months ago
parent 952dd68bd8
commit 9cf6b9f1b0

@ -76,7 +76,7 @@ function valencia {
let idDogv=$idDogv+1
sleep 1
done
echo $idDogv > lastDogv
echo $idDogv > .lastDogv
wget -q $mainURL -O $pdfFile
if [ "$(pdftotext $pdfFile - | grep -i -E -n -3 "$keyWords" | tee .cpds | wc -l)" = 0 ]; then echo "0 resultados"; rm -rf .cpds .boletin*; exit; else sendMail $pdfURL $comunidad;fi
rm -rf .boletin*

Loading…
Cancel
Save