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:
parent
76d0de8374
commit
e70e1b54e0
@ -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!)";
|
||||
|
Loading…
Reference in New Issue
Block a user