From 0b786c3ef263412e60328a2019e60da66c16853f Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 22:01:08 -0600 Subject: [PATCH] make only var --- functions/cmd_to_container.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index c05228ba..1ed5bd2d 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -32,9 +32,9 @@ do # continue # fi printf '%s\0' "${containers[@]}" | grep -Fxqz -- "$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")" && continue - containers+=("$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")") + containers+="$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")" done -readarray -td, containers <<<"${containers[@]}"; declare -p containers; +readarray -td, containers <<<"$containers"; declare -p containers; case "${#containers[@]}" in 0) echo -e "No containers available\nAre you sure the application in running?"