diff --git a/cpdAlerts.sh b/cpdAlerts.sh index f503e3c..3f24b36 100755 --- a/cpdAlerts.sh +++ b/cpdAlerts.sh @@ -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*