From c10ea958f30a9f93af138d1371f1207a08649210 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 8 Aug 2022 20:46:06 -0600 Subject: [PATCH] test new regex --- functions/menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/menu.sh b/functions/menu.sh index 88df690d..704f9a46 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -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[@]}"