7
0
mirror of https://github.com/marado/RNID.git synced 2025-01-21 09:49:37 +00:00

mai script: hack

This change should not make a difference, but it does.
While I don't figure out why, this hack makes it do what it is
supposed to.
This commit is contained in:
Marcos Marado 2018-11-10 20:05:50 +00:00
parent b48495a934
commit 8ecb8d84f1

View File

@ -1,6 +1,8 @@
#!/bin/bash
wget --no-check-certificate https://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx -o /dev/null -O -|grep -v __REQUESTDIGEST|grep -v VIEWSTATE|hxnormalize -x -l 1000|hxselect .conteudo |hxselect a > mai
wget --no-check-certificate https://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx -o /dev/null -O -|grep -v __REQUESTDIGEST|grep -v VIEWSTATE|hxnormalize -x -l 1000|hxselect .conteudo > mai-tmp
cat mai-tmp|hxselect a > mai
rm mai-tmp
if [ ! "$(diff mai scripts/14/mai|wc -l)" -eq "0" ]; then
echo "mai: incumprimento pode já não existir";
else