only show stdout

This commit is contained in:
Heavybullets8 2022-08-09 22:16:49 -06:00
parent b935c755c9
commit d05b8674b3

View File

@ -82,8 +82,8 @@ do
clear -x
title
if ! k3s crictl exec -it "$container_id" /bin/bash &>/dev/null; then
k3s crictl exec -it "$container_id" /bin/sh &>/dev/null || echo "This container does not accept shell access, try a different one."
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."
fi
break
;;