Make this work for old versions of automake

This commit is contained in:
Khaled Hosny 2018-02-16 20:22:52 +02:00
parent f8077c9790
commit 4eff0fc5b8

View File

@ -1,7 +1,8 @@
#!/bin/bash
for f in $(find . -name '*.log' -not -name 'config.log'); do
if [[ $(tail -1 $f) = FAIL* ]]; then
last=$(tail -1 $f)
if [[ $last = FAIL* || $last = *failed* ]]; then
echo '====' $f '===='
cat $f
fi