From d930c734f733f46cd9f5b59e78fb6dae2bdcde98 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 22:36:24 -0600 Subject: [PATCH] remove error message on STOPPED application --- 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 2adeba8f..09f2ee55 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -35,7 +35,7 @@ do # 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 " >> cont_file done -mapfile -t containers < <(sort -u cont_file) +mapfile -t containers < <(sort -u cont_file 2> /dev/null) rm cont_file 2> /dev/null case "${#containers[@]}" in 0)