From 7615f645543c61c1d0ccec626ca08891493d981d Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 22:28:37 -0600 Subject: [PATCH] try file --- 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 f0745b97..df336f63 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -32,10 +32,10 @@ do # continue # fi # printf '%s\0' "${containers[@]}" | grep -Fxqz -- "$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")" && continue - echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r " >> containers + echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r " >> cont_file done -cat containers +mapfile -t containers < cont_file case "${#containers[@]}" in 0)