From 9c1258e02ece1a2245a64181c633cc249ed8d030 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 9 Aug 2022 22:11:07 -0600 Subject: [PATCH] error message upon both sh and bash failure --- 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..24492c91 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -83,7 +83,7 @@ do title if ! k3s crictl exec -it "$container_id" /bin/bash ; then - k3s crictl exec -it "$container_id" /bin/sh + k3s crictl exec -it "$container_id" /bin/sh || echo "This application does not accept shell access apparently" fi break ;;