trying to rebuild array
This commit is contained in:
parent
389e0fbcd0
commit
ba17b0dd13
@ -32,9 +32,9 @@ do
|
||||
# continue
|
||||
# fi
|
||||
printf '%s\0' "${containers[@]}" | grep -Fxqz -- "$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")" && continue
|
||||
containers+="$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")"
|
||||
containers+=("$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")")
|
||||
done
|
||||
readarray -t containers <<<"$containers"
|
||||
readarray -t containers <<<"${containers[*]}"
|
||||
|
||||
case "${#containers[@]}" in
|
||||
0)
|
||||
|
Loading…
Reference in New Issue
Block a user