From b0a4119df0f4437811ef245233986f0c66b96acf Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Fri, 12 Aug 2022 09:49:26 -0600 Subject: [PATCH] set array to 0 --- 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 3b7fc50d..b2938c9a 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -37,7 +37,7 @@ case "${#containers[@]}" in exit ;; 1) - container=$(echo "$search" | grep "${pod_id[*]}" | awk '{print $4}') + container=$(echo "$search" | grep "${pod_id[0]}" | awk '{print $4}') container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}') ;;