7
0
mirror of https://github.com/marado/RNID.git synced 2025-01-21 09:49:37 +00:00

act: try only once, if the site is down, it's down

This commit is contained in:
Marcos Marado 2019-03-01 18:22:37 +00:00
parent 76d0de8374
commit e70e1b54e0

View File

@ -1,7 +1,7 @@
#!/bin/bash
# While we don't have a validator on request, let's find out if a known violation still exists
if [ "$(wget http://www.act.gov.pt/ --user-agent="Mozilla/5.0 Gecko/20100101 Firefox/21.0" -o /dev/null -O - | grep -i "<img" |grep -v -i alt|wc -l)" -eq "0" ]; then
if [ "$(wget -t 1 http://www.act.gov.pt/ --user-agent="Mozilla/5.0 Gecko/20100101 Firefox/21.0" -o /dev/null -O - | grep -i "<img" |grep -v -i alt|wc -l)" -eq "0" ]; then
echo "act: incumprimento pode já não existir";
else
echo "act: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";