mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
Check STY instead of TERM to see if screen is running
This commit is contained in:
parent
17245bbb4f
commit
a8fabc14c7
1 changed files with 1 additions and 1 deletions
2
byobu
2
byobu
|
@ -28,7 +28,7 @@ if [ "$1" = "-v" ]; then
|
|||
fi
|
||||
|
||||
# Nesting byobu inside of screen doesn't work well
|
||||
if [ "$TERM" = "screen" ]; then
|
||||
if [ ! -z "$STY" ]; then
|
||||
echo `gettext "Exit the current screen session to run $PKG"`
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue