From 00855ea3aa193620e82f2abf77b8f88acbb0909c Mon Sep 17 00:00:00 2001 From: Pseudavid Date: Sat, 15 Feb 2025 10:07:09 +0100 Subject: [PATCH] Errata corregida --- cpdAlerts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpdAlerts.sh b/cpdAlerts.sh index 57e1f15..b93980d 100755 --- a/cpdAlerts.sh +++ b/cpdAlerts.sh @@ -52,7 +52,7 @@ function madrid { mainURL="https://bocm.es" pdfURL=$(wget -q $mainURL -O - | grep -i "Descargar el boletín completo" | awk '{ print $12 }' | cut -d "\"" -f 2) wget -q $pdfURL -O $pdfFile - if [ "$(pdftotext $pdfFile - | grep -i -E -n -3 "$keyWords" | tee .cpds | wc -l)" = 0 ]; then echo "0 restultados"; 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 $pdfURL $comunidad;fi rm -rf .cpds .boletin* }