From 86bb687cc54a3949bea7f0984b81bb1e25064003 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand <2854905+chbruyand@users.noreply.github.com> Date: Wed, 8 Aug 2018 08:15:51 +0200 Subject: [PATCH] Fix greediness issue --- build-scripts/test-recursor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/test-recursor b/build-scripts/test-recursor index 0f27b721e1..531a38279b 100755 --- a/build-scripts/test-recursor +++ b/build-scripts/test-recursor @@ -46,7 +46,7 @@ sleep 3 svstat configs/* ## prints the logs of supervised processes reported as running for less than 3 secs for config in configs/* ; do - secs=$(svstat ${config} | perl -pe 's!.+(\d+) seconds!\1!') + secs=$(svstat ${config} | perl -pe 's!.* (\d+) seconds!\1!') if [ -n "${secs}" ] && [ ${secs} -lt 3 ] ; then echo "-----------------" echo "Logs of ${config}" -- 2.47.2