check for existence of byobu, otherwise, fall back to calling

screen (for exports)
This commit is contained in:
Dustin Kirkland 2009-12-12 10:28:21 -08:00
commit 0fc845cca7

View file

@ -28,7 +28,7 @@ RUN="/var/run/screen/S-$USER"
out=`screen -ls 2>/dev/null` || true
if echo "$out" | grep -qsi "^No Sockets found in "; then
# Start new session
exec $PKG
$(which $PKG >/dev/null) && exec $PKG || exec screen
else
# Set window title
printf "\033]0;${USER}@$(hostname) - ${PKG}\007"