mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
exec shell: on error show a status message instead of fatal exit
This commit is contained in:
parent
7679d4a7fd
commit
83a422933a
2
menus.go
2
menus.go
@ -361,7 +361,7 @@ func ExecShell() MenuFn {
|
|||||||
|
|
||||||
shell := config.GetVal("shell")
|
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{shell, "-c", "printf '\\e[0m\\e[?25h' && clear && " + shell}); err != nil {
|
||||||
log.Fatal(err)
|
log.StatusErr(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user