From d830f7e10cc1dc4981114d9c4489b083ec9ac95d Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 16:31:29 -0600 Subject: [PATCH] replace with podid --- 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 5af6cb4a..1effb5f0 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -32,7 +32,7 @@ do echo "$search" | grep "$pod" | awk '{print $4}' done | nl -s ") " | column -t) if [[ "${#pod_id[@]}" == 1 ]]; then - container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}') + container_id=$(echo "$search" | grep -E "[[:space:]]${pod_id[*]}[[:space:]]" | awk '{print $1}') else while true do