en caso de valencia mainURL

main
fanta 2 months ago
parent 9cf6b9f1b0
commit 016e01d9d4

@ -78,7 +78,7 @@ function valencia {
done
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
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 $mainURL $comunidad;fi
rm -rf .boletin*
}

Loading…
Cancel
Save