* usr/lib/byobu/.dirs:

- fix breakage when $TMUX is undefined
This commit is contained in:
Dustin Kirkland 2011-08-23 23:22:43 -05:00
commit 35aafb4eca
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -4,6 +4,8 @@ byobu (4.31) unreleased; urgency=low
- fix bold color printing
* usr/bin/byobu-janitor, usr/share/byobu/profiles/common:
- deprecate backticks file, no longer needed
* usr/lib/byobu/.dirs:
- fix breakage when $TMUX is undefined
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 21 Aug 2011 21:12:43 -0700

View file

@ -44,7 +44,7 @@ if [ -d "$XDG_CACHE_HOME" ]; then
elif [ -d "$SOCKETDIR/S-$USER" ]; then
# But for FAR better performance, use a tmpfs if available
export BYOBU_RUN_DIR="$SOCKETDIR/S-$USER/$PKG"
elif [ -d "$(dirname $TMUX)" ]; then
elif [ -n "$TMUX" ] && [ -d "$(dirname $TMUX)" ]; then
# Or perhaps try the tmux tmpdir
export BYOBU_RUN_DIR="$(dirname $TMUX)/$PKG"
else