mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
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:
3
menus.go
3
menus.go
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user