From cc43fb198374f682359fc23a683067aade233b52 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 22:21:17 -0600 Subject: [PATCH] change to newline with sed --- functions/cmd_to_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index f3b97e6c..d4a1d79e 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -32,7 +32,7 @@ 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}' | sed 's/ /\n//')") done mapfile -t containers < <(echo "${containers[*]}") for i in "${containers[@]}"