replace with podid

This commit is contained in:
Heavybullets8 2022-08-10 16:31:29 -06:00
parent 6f7f18d6a4
commit d830f7e10c

View File

@ -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