attempt new for loop

This commit is contained in:
Heavybullets8 2022-08-10 17:25:13 -06:00
parent 94e78f756b
commit b18818bbd5

View File

@ -41,7 +41,8 @@ elif [[ "${#containers[@]}" == 0 ]]; then
else
for pod in "${pod_id[@]}"
do
mapfile -t containers < <(echo "$search" | grep "$pod" | awk '{print $4}')
# mapfile -t containers < <(echo "$search" | grep "$pod" | awk '{print $4}')
IFS=" " read -r -a containers <<< "$(echo "$search" | grep "$pod" | awk '{print $4}')"
done
while true
do