From 950aec1d9c324f54ecc426b6cb6195ac53348f52 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 28 Nov 2024 16:51:02 +0100 Subject: [PATCH] store the command in `cmd` --- list_test_runner_machines | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/list_test_runner_machines b/list_test_runner_machines index 04f43eb..6bb4e49 100755 --- a/list_test_runner_machines +++ b/list_test_runner_machines @@ -50,9 +50,10 @@ docker_or_podman_ps_cmd () { } machine_list_cgal_test_container () { + cmd=$(docker_or_podman_ps_cmd) echo echo '```plain' - docker_or_podman_ps_cmd | ssh $1 bash -s + printf '%s\n' "$cmd" | ssh $1 bash -s echo '```' }