also grep pod for addon containers

This commit is contained in:
Heavybullets8 2022-08-21 22:44:55 -06:00
parent d930c734f7
commit 25cbd91818

View File

@ -74,7 +74,7 @@ case "${#containers[@]}" in
fi
done
container=$(echo "$cont_search" | grep ^"$selection)" | awk '{print $2}')
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}')
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | grep "${pod_id[0]}" | awk '{print $1}')
;;
esac
while true