2018-02-14 22:13:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for f in $(find . -name '*.log' -not -name 'config.log'); do
|
2018-02-15 10:47:08 +01:00
|
|
|
if [[ $(tail -1 $f) = FAIL* ]]; then
|
|
|
|
echo '====' $f '===='
|
|
|
|
cat $f
|
|
|
|
fi
|
2018-02-14 22:13:46 +01:00
|
|
|
done
|
2018-02-15 10:25:24 +01:00
|
|
|
|
|
|
|
# Intentionally exiting with non-zero.
|
|
|
|
exit 1
|