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

Update 50-imt.sh

Codigo com erro no final faltava o fi.
This commit is contained in:
00tiagopolicarpo00 2021-10-23 18:57:12 +01:00 committed by GitHub
parent 9a06b2431c
commit d1f3dfe772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,9 @@ if [ "$(wget https://www.imt-ip.pt/ -o /dev/null -O -| hxnormalize -x -l 10000|h
else
echo "iefp: 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 iefp|wc -l) -eq "1" \
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