From ada2ce2974ded3298e5dbda84409ea09d0f8b173 Mon Sep 17 00:00:00 2001 From: Marcos Marado Date: Sun, 24 Oct 2021 19:31:51 +0100 Subject: [PATCH] script act: mais debug A GA continua a ter um comportamento diferente de uma run local... --- scripts/18-act.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/18-act.sh b/scripts/18-act.sh index 6e2d6ae..4803d17 100755 --- a/scripts/18-act.sh +++ b/scripts/18-act.sh @@ -4,13 +4,14 @@ content=$(wget -t 1 --no-check-certificate http://www.act.gov.pt/ --user-agent="Mozilla/5.0 Gecko/20100101 Firefox/21.0" -o /dev/null -O -); if [ "$( echo "$content" | wc -l )" -eq "0" ]; then echo "act: página vazia! Pode ser problema no site, ou no script."; - echo "DEBUG: "; - wget -t 1 --no-check-certificate http://www.act.gov.pt/ --user-agent="Mozilla/5.0 Gecko/20100101 Firefox/21.0"; - rm index.html; fi if [ "$( echo "$content" | grep -i "