From 3cacd0bb80e277be3b79d953e90a3036daebff83 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 22:12:13 -0600 Subject: [PATCH] quotations --- 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 af0eaf7f..84cb7291 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -34,7 +34,7 @@ do 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 ")") done -mapfile -t containers < <("echo ${containers[*]}") +mapfile -t containers < <(echo "${containers[*]}") case "${#containers[@]}" in 0) echo -e "No containers available\nAre you sure the application in running?"