set array to 0

This commit is contained in:
Heavybullets8 2022-08-12 09:49:26 -06:00
parent 80d10a5df2
commit b0a4119df0

View File

@ -37,7 +37,7 @@ case "${#containers[@]}" in
exit
;;
1)
container=$(echo "$search" | grep "${pod_id[*]}" | awk '{print $4}')
container=$(echo "$search" | grep "${pod_id[0]}" | awk '{print $4}')
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}')
;;