mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -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
|
# and friends can pick it up before going into screen
|
||||||
[ -x /bin/bash ] && /bin/true | /bin/bash -i -s
|
[ -x /bin/bash ] && /bin/true | /bin/bash -i -s
|
||||||
|
|
||||||
arg="-xRR"
|
|
||||||
out=`screen -ls 2>/dev/null` || true
|
out=`screen -ls 2>/dev/null` || true
|
||||||
if echo "$out" | grep -qsi "^No Sockets found in "; then
|
if echo "$out" | grep -qsi "^No Sockets found in "; then
|
||||||
# Start new session
|
# Start new session
|
||||||
arg=""
|
exec screen
|
||||||
|
else
|
||||||
|
# Re-attach to an existing session
|
||||||
|
exec screen -xRR
|
||||||
fi
|
fi
|
||||||
exec screen "$arg"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue