7
0
mirror of https://github.com/marado/RNID.git synced 2024-12-21 11:34:15 +00:00

combustívels: agora também com problema no HTTPS

This commit is contained in:
Marcos Marado 2021-09-01 14:16:14 +01:00
parent 72ca829f9f
commit 26a66a1883

View File

@ -1,7 +1,8 @@
#!/bin/bash
if [ "$(wget "https://www.precoscombustiveis.dgeg.pt/pagina.aspx?screenwidth=1920&mlkid=pciumvukbs2o1z55tmon3ae3&menucb=1&cn=6160AAAAAAAAAAAAAAAAAAAA" -o /dev/null -O -|grep Flash -c)" -eq "0" ]; then
if [ "$(wget --no-check-certificate "https://www.precoscombustiveis.dgeg.pt/pagina.aspx?screenwidth=1920&mlkid=pciumvukbs2o1z55tmon3ae3&menucb=1&cn=6160AAAAAAAAAAAAAAAAAAAA" -o /dev/null -O -|grep Flash -c)" -eq "0" ]; then
echo "combustiveis: incumprimento pode já não existir";
echo " ...mas há que validar se o problema do HTTPS também já desapareceu."; # o wget funciona sem o --no-check-certificate ?
else
echo "combustiveis: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";
while IFS='' read -r line || [[ -n "$line" ]]; do