From 8ecb8d84f1a08bb702f9749fda6d0e5c4a4fd685 Mon Sep 17 00:00:00 2001 From: Marcos Marado Date: Sat, 10 Nov 2018 20:05:50 +0000 Subject: [PATCH] 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. --- scripts/14-mai.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/14-mai.sh b/scripts/14-mai.sh index 6c43eac..4c74de6 100755 --- a/scripts/14-mai.sh +++ b/scripts/14-mai.sh @@ -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