test new regex

This commit is contained in:
Heavybullets8 2022-08-08 20:46:06 -06:00
parent a1ab1ffb8b
commit c10ea958f3

View File

@ -237,7 +237,7 @@ case $selection in
done
app_name=$(echo -e "$app_name" | grep ^"$selection)" | awk '{print $2}')
search=$(k3s crictl ps -a -s running)
mapfile -t pod_id < <(echo "$search" | grep -E " $app_name( |-)?" | awk '{print $9}')
mapfile -t pod_id < <(echo "$search" | grep -E " $app_name( *|-?)" | awk '{print $9}')
containers=$(
for pod in "${pod_id[@]}"