From 1165cfe6f4c039713c0f0316067e5aceeec6580d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Fri, 27 Nov 2020 12:12:39 +0100 Subject: [PATCH] Fix shellcheck issue Without this, shellcheck will complain about double quotes missing. --- tests/kind/follow-coordinated-reboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kind/follow-coordinated-reboot.sh b/tests/kind/follow-coordinated-reboot.sh index 752ab52..5a502f0 100755 --- a/tests/kind/follow-coordinated-reboot.sh +++ b/tests/kind/follow-coordinated-reboot.sh @@ -20,10 +20,10 @@ function gather_logs_and_cleanup { # This is useful to see if the nodes have _properly_ rebooted. # It should show the reboot/two container starts per node. - for name in `docker ps -a -f "name=${CONTAINER_NAME_FORMAT}" -q`; do + for name in $(docker ps -a -f "name=${CONTAINER_NAME_FORMAT}" -q); do echo "############################################################" echo "docker logs for container $name:" - docker logs $name + docker logs "$name" done fi }