mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-select-session: LP: #855795
- fix broken select-session support; screen -ls exits 1
This commit is contained in:
parent
3f24ebbb22
commit
00475e665d
2 changed files with 3 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -9,6 +9,8 @@ byobu (4.34) unreleased; urgency=low
|
|||
- fix regressed monochrome support
|
||||
* usr/bin/byobu-janitor, usr/share/byobu/status/status:
|
||||
- proper fix for ec2 by default in cloud instances
|
||||
* usr/bin/byobu-select-session: LP: #855795
|
||||
- fix broken select-session support; screen -ls exits 1
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 08 Sep 2011 14:26:43 -0700
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ def get_sessions():
|
|||
i = 0
|
||||
if commands.getstatusoutput("command -v screen")[0] == 0:
|
||||
output = commands.getstatusoutput("screen -ls")
|
||||
if output[0] == 0:
|
||||
if output[0] >= 0:
|
||||
for s in output[1].split("\n"):
|
||||
s = re.sub(r'\s+', ' ', s)
|
||||
# Ignore hidden sessions (named sessions that start with a ".")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue