diff --git a/README.md b/README.md index 17bd8ca..8fb4dd9 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Esta tabela mostra casos de incumprimento do regulamento: | www.ansr.pt | Documentos em DOCX | [Documentos em formato proprietário](http://www.ansr.pt/Contraordenacoes/Formularios/Pages/default.aspx) | 2018/08/20 | 2015/04/14 | | https://www.autenticacao.gov.pt/ | Precisa de [extensão autenticacao.gov.pt](https://autenticacao.gov.pt/fa/ajuda/autenticacaogovpt.aspx#installAgent) para funcionar | [autenticação](https://cmd.autenticacao.gov.pt/Ama.Authentication.Frontend/) | 2018/08/20 | | | https://citius.tribunaisnet.mj.pt | Precisa de Plugin Java para funcionar | [documentação](https://citius.tribunaisnet.mj.pt/habilus/Docs/CITIUS_WEB_FIREFOX_MARCO_2017.pdf) | 2018/08/20 | 2017/06/12 | -| http://www.sg.mai.gov.pt | XLS | [cadernos eleitorais](http://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx) | 2018/07/14 | 2016/01/28 | +| http://www.sg.mai.gov.pt | XLS, certificado HTTPS inválido | [cadernos eleitorais](http://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx) | 2018/08/20 | 2016/01/28 | | http://www.rcaap.pt/ | obriga depósito de dados em formatos não-livres ([lista de formatos autorizados](https://dre.pt/application/conteudo/72779297)) | MP3 | 2018/07/14 | | | https://servicos.min-saude.pt/utente/ | Acessibilidade | [site não cumpre WCAG 2.0 AA](https://servicos.min-saude.pt/utente/) | 2018/07/14 | 2016/09/27 | | https://www.min-saude.pt/ | Certificado https inválido | https://www.min-saude.pt/ | 2018/07/14 | 2016/10/01 | diff --git a/scripts/14-mai.sh b/scripts/14-mai.sh index b9112c0..129b24f 100755 --- a/scripts/14-mai.sh +++ b/scripts/14-mai.sh @@ -1,14 +1,19 @@ #!/bin/bash -wget https://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx -o /dev/null -O -|grep -v __REQUESTDIGEST|grep -v VIEWSTATE > mai -if [ ! "$(diff mai scripts/14/mai|wc -l)" -eq "0" ]; then - echo "mai: incumprimento pode já não existir"; + +if [ ! "$(wget https://www.sg.mai.gov.pt/ -o -|grep cert -c)" -eq "2" ]; then + echo "certificado mai: incumprimento pode já não existir"; else - echo "mai: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)"; - while IFS='' read -r line || [[ -n "$line" ]]; do - test $(echo "$line"|grep -v sg.mai|wc -l) -eq "1" \ - && echo "$line" \ - || (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t"); - done < README.md > new - mv new README.md + 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 > mai + if [ ! "$(diff mai scripts/14/mai|wc -l)" -eq "0" ]; then + echo "mai: incumprimento pode já não existir"; + else + echo "mai: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)"; + while IFS='' read -r line || [[ -n "$line" ]]; do + test "$(echo "$line"|grep -c -v sg.mai)" -eq "1" \ + && echo "$line" \ + || (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t"); + done < README.md > new + mv new README.md + fi + rm mai fi -rm mai diff --git a/scripts/14/mai b/scripts/14/mai index afc924d..cf930b2 100644 --- a/scripts/14/mai +++ b/scripts/14/mai @@ -378,7 +378,7 @@ var g_commandUIHandlers = {"name":"CommandHandlers","attrs":{},"children":[]};
- Portugal sem fogosLogotipoDeclaração de Contingência do Secretário Estado AIEquipa de Análise Retrospetiva de Homicídio em Violência DomésticaRelatório Violência Doméstica 2016 + Portugal sem fogosEquipa de Análise Retrospetiva de Homicídio em Violência DomésticaRelatório Violência Doméstica 2016