7
0
mirror of https://github.com/marado/RNID.git synced 2024-12-22 11:55:59 +00:00

Update 49-imt.sh

update codigo em falta
This commit is contained in:
00tiagopolicarpo00 2021-10-23 22:04:51 +01:00 committed by GitHub
parent 8982d8375e
commit 975243e3c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,18 @@ fi
## 23/10/2021: there are empty alts ## 23/10/2021: there are empty alts
emptyalt=$(curl -k -L https://servicos.imt-ip.pt/ | hxclean | hxselect -s '\n' img | hxselect -s '\n' -c 'img::attr(alt)'|grep -c ^$); emptyalt=$(curl -k -L https://servicos.imt-ip.pt/ | hxclean | hxselect -s '\n' img | hxselect -s '\n' -c 'img::attr(alt)'|grep -c ^$);
if [ "$emptyalt" -ne "0" ]; then if [ "$emptyalt" -ne "0" ]; then
echo "imt: problemas de acessibilidade"; echo "imtonline: problemas de acessibilidade";
fail=3; fail=3;
fi fi
if [ "$fail" = 0 ]; then
echo "imtonline: incumprimento pode já não existir";
else
echo "imtonline: 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 imt|wc -l) -eq "1" \
&& echo "$line" \
|| (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t");
done < README.md > new
mv new README.md
fi