|
|
|
@ -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*
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|