From a8fabc14c7421b1e8fb0809e859bd02b28d4579b Mon Sep 17 00:00:00 2001 From: Chow Loong Jin Date: Fri, 24 Jul 2009 18:28:05 +0800 Subject: [PATCH] Check STY instead of TERM to see if screen is running --- byobu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byobu b/byobu index 08269083..b46f8cb9 100755 --- a/byobu +++ b/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