Errata corregida

main
Pseudavid 2 months ago
parent 852266f3da
commit 00855ea3aa

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

Loading…
Cancel
Save