attempt new for loop
This commit is contained in:
parent
94e78f756b
commit
b18818bbd5
@ -41,7 +41,8 @@ elif [[ "${#containers[@]}" == 0 ]]; then
|
|||||||
else
|
else
|
||||||
for pod in "${pod_id[@]}"
|
for pod in "${pod_id[@]}"
|
||||||
do
|
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
|
done
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user