Make this work for old versions of automake
authorKhaled Hosny <khaledhosny@eglug.org>
Fri, 16 Feb 2018 18:22:52 +0000 (20:22 +0200)
committerKhaled Hosny <khaledhosny@eglug.org>
Fri, 16 Feb 2018 20:01:33 +0000 (22:01 +0200)
.ci/fail.sh

index c468710..91701d3 100755 (executable)
@@ -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