From cd6f940f1da2e812db48d10f7dfcf19429ba76b3 Mon Sep 17 00:00:00 2001 From: KubeSphere CI Bot <47586280+ks-ci-bot@users.noreply.github.com> Date: Thu, 21 Jul 2022 11:16:29 +0800 Subject: [PATCH] [release-3.3] Adjust container terminal priority: bash, sh (#5076) Adjust container terminal priority: bash, sh Co-authored-by: tal66 <77445020+tal66@users.noreply.github.com> --- pkg/models/terminal/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/terminal/terminal.go b/pkg/models/terminal/terminal.go index a0ded8010..8b8c08e6c 100644 --- a/pkg/models/terminal/terminal.go +++ b/pkg/models/terminal/terminal.go @@ -330,7 +330,7 @@ func isValidShell(validShells []string, shell string) bool { func (t *terminaler) HandleSession(shell, namespace, podName, containerName string, conn *websocket.Conn) { var err error - validShells := []string{"sh", "bash"} + validShells := []string{"bash", "sh"} session := &TerminalSession{conn: conn, sizeChan: make(chan remotecommand.TerminalSize)}