Check STY instead of TERM to see if screen is running

This commit is contained in:
Chow Loong Jin 2009-07-24 18:28:05 +08:00
commit a8fabc14c7

2
byobu
View file

@ -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