diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index f1c35399..856b3756 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -41,8 +41,7 @@ elif [[ "${#containers[@]}" == 0 ]]; then else for pod in "${pod_id[@]}" do - # mapfile -t containers < <(echo "$search" | grep "$pod" | awk '{print $4}') - IFS=" " read -r -a containers <<< "$(echo "$search" | grep "$pod" | awk '{print $4}')" + echo "$pod" done while true do