This commit is contained in:
Heavybullets8 2022-08-09 22:27:16 -06:00
parent d05b8674b3
commit 1c0e223648

View File

@ -69,7 +69,6 @@ do
echo "Exiting.." echo "Exiting.."
exit exit
;; ;;
1) 1)
clear -x clear -x
title title
@ -77,17 +76,14 @@ do
k3s crictl exec -it "$container_id" $command k3s crictl exec -it "$container_id" $command
break break
;; ;;
2) 2)
clear -x clear -x
title title
if ! k3s crictl exec -it "$container_id" /bin/bash 2>/dev/null; then if ! k3s crictl exec -it "$container_id" /bin/bash 2>/dev/null; then
k3s crictl exec -it "$container_id" /bin/sh 2>/dev/null || echo "This container does not accept shell access, try a different one." k3s crictl exec -it "$container_id" /bin/sh 2>/dev/null || echo "This container does not accept shell access, try a different one."
fi fi
break break
;; ;;
*) *)
echo "That was not an option.. Try again" echo "That was not an option.. Try again"
sleep 3 sleep 3