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

mai: debug: always print the return code for wget

This commit is contained in:
Marcos Marado 2023-08-02 12:56:13 +01:00
parent 35e3ea65e7
commit 6a9b151a1f

View File

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