mirror of
https://github.com/marado/RNID.git
synced 2025-01-03 01:17:34 +00:00
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:
parent
f207d0b4c3
commit
9d27304c6d
@ -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
Loading…
Reference in New Issue
Block a user