mirror of
https://github.com/marado/RNID.git
synced 2025-01-21 09:49:37 +00:00
portugal2020: grep the entry more explicitly
Avoid mistakenly update also porto2020's result.
This commit is contained in:
parent
950cc09cb6
commit
8a8bcf7138
@ -6,7 +6,7 @@ if [ ! "$(diff even scripts/30/even|wc -l)" -eq "0" ]; then
|
||||
else
|
||||
echo "2020: 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 -c "2020")" -eq "1" \
|
||||
test "$(echo "$line"|grep -v -c "portugal2020")" -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
|
||||
|
Loading…
Reference in New Issue
Block a user