From d58b25c35582b0665c66ef30a80679e85457e34b Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 18 Aug 2022 00:13:05 -0600 Subject: [PATCH] cut out ix --- functions/cmd_to_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index 25c405e2..c1021a5c 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -22,7 +22,7 @@ do break fi done -app_name=$(echo -e "$app_name" | grep ^"$selection)" | awk '{print $2}') +app_name=$(echo -e "$app_name" | grep ^"$selection)" | awk '{print $2}' | cut -c4-) search=$(k3s crictl pods -s ready --namespace ix) mapfile -t pod_id < <(echo "$search" | grep -E "[[:space:]]$app_name([[:space:]]|-([-[:alnum:]])*[[:space:]])" | awk '{print $1}') search=$(k3s crictl ps -a -s running | sed -E 's/[[:space:]]([0-9]*|About)[a-z0-9 ]{5,12}ago[[:space:]]//')