From ba17b0dd136310601d4e31c1d2966410e6c2fcca Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 21:51:57 -0600 Subject: [PATCH] trying to rebuild array --- 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 1429b9fc..4db51b53 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 -t containers <<<"$containers" +readarray -t containers <<<"${containers[*]}" case "${#containers[@]}" in 0)