mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
fix calling of the screen binary
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
b421ac3fd5
commit
f2ce4dc789
1 changed files with 4 additions and 3 deletions
|
@ -25,10 +25,11 @@
|
|||
# and friends can pick it up before going into screen
|
||||
[ -x /bin/bash ] && /bin/true | /bin/bash -i -s
|
||||
|
||||
arg="-xRR"
|
||||
out=`screen -ls 2>/dev/null` || true
|
||||
if echo "$out" | grep -qsi "^No Sockets found in "; then
|
||||
# Start new session
|
||||
arg=""
|
||||
exec screen
|
||||
else
|
||||
# Re-attach to an existing session
|
||||
exec screen -xRR
|
||||
fi
|
||||
exec screen "$arg"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue