7
0
mirror of https://github.com/marado/RNID.git synced 2024-12-22 03:54:21 +00:00

mai: exposing wget's return code when it fails

Apparently the test is currently failing in environments with OpenSSL
3. Lazilly, I'm going to change the test in order to have it run
remotely on github instead of creating a local environment with that
version of OpenSSL. This is a step into adding an SSL test step.
This commit is contained in:
Marcos Marado 2023-07-06 19:49:51 +01:00
parent f67a52f002
commit a406d18fb9

View File

@ -8,7 +8,9 @@ if [ ! "$(diff mai scripts/14/mai|wc -l)" -eq "0" ]; then
cat mai-tmp
echo "EOF"
echo "EXTRA DEBUG:"
wget --no-check-certificate https://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx && cat default.aspx && rm default.aspx
# wget --no-check-certificate https://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx && cat default.aspx && rm default.aspx
echo "wget's return code is:"
wget --no-check-certificate https://www.sg.mai.gov.pt/AdministracaoEleitoral/RecenseamentoEleitoral/ResultadosRecenseamento/Paginas/default.aspx && echo $?
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