From cbe130a714632536c117cf4b4cebaa309da20f7b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 26 Mar 2021 15:57:57 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20service=20name=20parsing,=20there's=20a?= =?UTF-8?q?=20stupid=20=E2=97=8F=20hanging=20on=20the=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests.sh b/lib/tests.sh index 9c58d19..faf877b 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -257,7 +257,7 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result if [[ $curl_error -ne 0 ]] && echo "5" | grep -q "${http_code:0:1}" then LXC_EXEC "systemctl --all" | grep "$app_id_to_check.*service" - for SERVICE in $(LXC_EXEC "systemctl -all" | grep "$app_id_to_check.*service" | awk '{print $1}') + for SERVICE in $(LXC_EXEC "systemctl -all" | grep -o "$app_id_to_check.*service") do LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE"; done