exec shell: remove shell config or option

The option is never worked and can't properly work because almost all containers anyway using Ash/Dash from /bin/sh
This commit is contained in:
Sergey Ponomarev
2020-11-20 10:39:28 +02:00
parent 83a422933a
commit 5ec02f760e
4 changed files with 1 additions and 13 deletions

View File

@@ -359,8 +359,7 @@ func ExecShell() MenuFn {
ui.DefaultEvtStream.ResetHandlers()
defer ui.DefaultEvtStream.ResetHandlers()
shell := config.GetVal("shell")
if err := c.Exec([]string{shell, "-c", "printf '\\e[0m\\e[?25h' && clear && " + shell}); err != nil {
if err := c.Exec([]string{"/bin/sh", "-c", "printf '\\e[0m\\e[?25h' && clear && /bin/sh"}); err != nil {
log.StatusErr(err)
}