From aa6a470b0de9fde5e07e05b756c4981143a75ddc Mon Sep 17 00:00:00 2001 From: h0tznpl0tz Date: Thu, 11 Sep 2025 15:00:48 +0200 Subject: [PATCH] Fix AWK regex syntax error in exitrace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix unterminated regexp in deferred detection - Simplify regex pattern for 'all hosts failing' detection - Removes problematic single quote escaping in AWK 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- legacy/exitrace/exitrace.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/exitrace/exitrace.sh b/legacy/exitrace/exitrace.sh index f3761cd..a85e575 100755 --- a/legacy/exitrace/exitrace.sh +++ b/legacy/exitrace/exitrace.sh @@ -419,7 +419,7 @@ BEGIN { FS=" " } # Deferred detection is_defer = 0 - if (is_remote && (index($0, "retry time not reached")>0 || index($0, "temporar")>0 || index($0, "timed out")>0 || match($0, /all hosts for '\''[^']+'\'' have been failing/))) { + if (is_remote && (index($0, "retry time not reached")>0 || index($0, "temporar")>0 || index($0, "timed out")>0 || match($0, /all hosts for.*have been failing/))) { is_defer=1 } @@ -437,7 +437,7 @@ BEGIN { FS=" " } if (is_perm_fail) fails[msgid]++ # Fail marker - if (match($0, /all hosts for '\''[^']+'\'' have been failing/)) { + if (match($0, /all hosts for.*have been failing/)) { fail_marker[msgid]=1 }