test
This commit is contained in:
parent
65eaf1682d
commit
df34a87089
@ -237,7 +237,7 @@ case $selection in
|
|||||||
done
|
done
|
||||||
app_name=$(echo -e "$app_name" | grep ^"$selection)" | awk '{print $2}')
|
app_name=$(echo -e "$app_name" | grep ^"$selection)" | awk '{print $2}')
|
||||||
search=$(k3s crictl ps -a -s running)
|
search=$(k3s crictl ps -a -s running)
|
||||||
mapfile -t pod_id < <(echo "$search" | grep -E " $app_name(-|[[:alnum:]])*[[:space:]]" | awk '{print $9}')
|
mapfile -t pod_id < <(echo "$search" | grep -E " $app_name(-)?[[:alnum:]]*[[:space:]]" | awk '{print $9}')
|
||||||
|
|
||||||
containers=$(
|
containers=$(
|
||||||
for pod in "${pod_id[@]}"
|
for pod in "${pod_id[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user