mirror of
https://github.com/marado/RNID.git
synced 2024-12-22 03:54:21 +00:00
mai validation: only try to remove file when we're creating it
This commit is contained in:
parent
0e998f3d9d
commit
2fdbf57444
@ -16,6 +16,7 @@ if [ ! "$(diff mai scripts/14/mai|wc -l)" -eq "0" ]; then
|
|||||||
# 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:"
|
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 $?
|
||||||
|
rm default.aspx
|
||||||
else
|
else
|
||||||
echo "mai: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";
|
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
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
@ -25,4 +26,4 @@ else
|
|||||||
done < README.md > new
|
done < README.md > new
|
||||||
mv new README.md
|
mv new README.md
|
||||||
fi
|
fi
|
||||||
rm mai-tmp mai default.aspx
|
rm mai-tmp mai
|
||||||
|
Loading…
Reference in New Issue
Block a user