🐛 don't report error for no sessions
This commit is contained in:
parent
90d2ed7300
commit
93c49520ed
@ -46,7 +46,7 @@ func (t *Tmux) ListSessions() []string {
|
||||
sessions := []string{}
|
||||
result, err := t.Exec("ls", "-F", "#{session_name}")
|
||||
if err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
// No active sessions returns as an error.
|
||||
return sessions
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user