From 61bf2efe8509b46d3c3fcbaed05a2fcb2e726c8e Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 22:13:09 -0600 Subject: [PATCH] echo array for testting --- functions/cmd_to_container.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index 84cb7291..bde8c2e9 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -35,6 +35,10 @@ do containers+=("$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")") done mapfile -t containers < <(echo "${containers[*]}") +for i in "${containers[@]}" +do + echo "$i" +done case "${#containers[@]}" in 0) echo -e "No containers available\nAre you sure the application in running?"