From 016e01d9d4cea1fee98b290d12f86b8d269434a3 Mon Sep 17 00:00:00 2001 From: fanta Date: Sun, 16 Feb 2025 17:18:22 +0100 Subject: [PATCH] en caso de valencia mainURL --- cpdAlerts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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* }