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