From 6b9be5102c052fb4dfebddd2bf117d7d536c33aa Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 9 Aug 2022 21:53:47 -0600 Subject: [PATCH] error code --- 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 e7603d74..49b8ab29 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -82,7 +82,7 @@ do clear -x title - if ! k3s crictl exec -it "$container_id" /bin/bash ; then + if ! k3s crictl exec -it "$container_id" /bin/bash && $? != 130 ; then k3s crictl exec -it "$container_id" /bin/sh fi break