From: Charles-Henri Bruyand <2854905+chbruyand@users.noreply.github.com> Date: Wed, 8 Aug 2018 06:15:51 +0000 (+0200) Subject: Fix greediness issue X-Git-Tag: dnsdist-1.3.3~170^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6809%2Fhead;p=thirdparty%2Fpdns.git Fix greediness issue --- 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}"