From f82e8e45ebf97b9b30afe1e2742e2f540d652b39 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 15 Feb 2018 14:11:18 +0100 Subject: bin/ii-connect: fix regex recognizing buildmaster commands in channel --- bin/ii-connect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ii-connect') diff --git a/bin/ii-connect b/bin/ii-connect index cfe5043..867381e 100755 --- a/bin/ii-connect +++ b/bin/ii-connect @@ -51,10 +51,10 @@ if [ "$1" = 'watch' ]; then else prefix='' fi - regex='^\S\+ \S\+ <\S\+> '"${prefix}"'why[- ]don'"'"'\?t[- ]you \(build\|stabilize\|unstage\|keep\|stubbornly_keep\) ' + regex='^\(\S\+ \)\?\S\+ <\S\+> '"${prefix}"'why[- ]don'"'"'\?t[- ]you \(build\|stabilize\|unstage\|keep\|stubbornly_keep\) ' if grep -q "${regex}" "${out_file}"; then sed -n ' - s/'"${regex}"'/\1 / + s/'"${regex}"'/\2 / T p ' "${out_file}" | \ -- cgit v1.2.3