mai: enhance script

To better debug or visually inspect the changes, our temp files are
now formatted with a link per line, so the diff is visually more
informative.
This commit is contained in:
Marcos Marado 2021-09-18 17:51:26 +01:00
parent f207d0b4c3
commit 9d27304c6d
2 changed files with 71 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/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 > mai-tmp
cat mai-tmp|hxselect a > mai
cat mai-tmp|hxselect a -s'\n' > mai
rm mai-tmp
if [ ! "$(diff mai scripts/14/mai|wc -l)" -eq "0" ]; then
echo "mai: incumprimento pode já não existir";

File diff suppressed because one or more lines are too long