2018-05-26 15:32:21 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-11-10 20:37:07 +00:00
|
|
|
# XXX: pode haver outro incumprimento com o certificado HTTPS, verificar
|
2018-05-26 15:32:21 +00:00
|
|
|
|
2018-11-10 20:37:07 +00:00
|
|
|
# https://www.iefp.pt/ - não cumpre WCAG 2.0 AA
|
2020-10-03 16:54:57 +00:00
|
|
|
if [ "$(wget --no-check-certificate https://servicos.min-saude.pt/utente/ -o /dev/null -O - | grep "<img" |grep -c "alt=\"\"")" -eq "0" ]; then
|
2018-05-26 15:32:21 +00:00
|
|
|
echo "servicos min-saude: incumprimento pode já não existir";
|
|
|
|
else
|
|
|
|
echo "servicos min-saude: 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 servicos.min-saude|wc -l) -eq "1" \
|
|
|
|
&& echo "$line" \
|
2024-10-18 19:31:33 +00:00
|
|
|
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); nc=$(echo "$line"|cut -d\| -f5 | wc -m); printf "%s| %-$((nc-2))s|%s\n" "$h" "$(date +%Y/%m/%d)" "$t");
|
2018-05-26 15:32:21 +00:00
|
|
|
done < README.md > new
|
|
|
|
mv new README.md
|
|
|
|
fi
|