scripts: fix failure validation syntax

This commit is contained in:
Marcos Marado 2021-08-08 15:27:51 +01:00
parent 6e08d88e68
commit a6338194df
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ elif [ "$(curl -s -I https://www.dgae.gov.pt/gestao-de-ficheiros-externos-dgae-a
fail=1;
fi
if [ ! "$fail" ]; then
if [ "$fail" = 0 ]; then
echo "economia: incumprimento pode já não existir";
else
echo "economia: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";

View File

@ -23,7 +23,7 @@ else
fi
fi
if [ ! "$fail" ]; then
if [ "$fail" = 0 ]; then
echo "dgt: algo mudou (nlinks $nlinks, xls $xls), incumprimento potencialmente resolvido (verificar manualmente!)";
else
echo "dgt: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";

View File

@ -6,7 +6,7 @@ if [ "$(curl https://www.imt-ip.pt/sites/IMTT/Portugues/Formularios/Documents/Mo
fail=1;
fi
if [ ! "$fail" ]; then
if [ "$fail" = 0 ]; then
echo "imt: incumprimento pode já não existir";
else
echo "imt: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)";