Print only the failed log
This commit is contained in:
parent
8e3b4c0e11
commit
f8077c9790
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for f in $(find . -name '*.log' -not -name 'config.log'); do
|
for f in $(find . -name '*.log' -not -name 'config.log'); do
|
||||||
echo '====' $f '===='
|
if [[ $(tail -1 $f) = FAIL* ]]; then
|
||||||
cat $f
|
echo '====' $f '===='
|
||||||
|
cat $f
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Intentionally exiting with non-zero.
|
# Intentionally exiting with non-zero.
|
||||||
|
|
Loading…
Reference in New Issue