diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index cda66710..09f2ee55 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -74,7 +74,7 @@ case "${#containers[@]}" in fi done container=$(echo "$cont_search" | grep ^"$selection)" | awk '{print $2}') - container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | grep "${pod_id[0]}" | awk '{print $1}') + container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}') ;; esac while true