usr/bin/byobu-janitor: use greadlink on Mac OSX, LP: #740370

This commit is contained in:
Dustin Kirkland 2011-04-14 17:58:24 -05:00
commit e215949bae
2 changed files with 3 additions and 1 deletions

1
debian/changelog vendored
View file

@ -31,6 +31,7 @@ byobu (3.30) unreleased; urgency=low
usr/share/byobu/profiles/screenrc: support using ~/.byoburc, instead of
~/.screenrc, if present; some users seem to want to use byobu and screen
separately, and keep their profiles separate, LP: #731529
* usr/bin/byobu-janitor: use greadlink on Mac OSX, LP: #740370
[ Chaskiel Grundman ]
* debian/postinst: correctly fix old-school screen-profiles era diversions

View file

@ -45,6 +45,7 @@ DEFAULT_PROFILE="light"
PROFILE="$DATA/profile"
# Use gsed on non-Linux OS's
which gsed 2>/dev/null && SED="gsed" || SED="sed"
which greadlink 2>/dev/null && READLINK="greadlink" || READLINK="readlink"
# Create byobu-exchange buffer file, with secure permissions, if it doesn't exist
if [ -w "$RUN" ] && [ ! -e "$RUN/$PKG-exchange" ]; then
@ -65,7 +66,7 @@ fi
# Affects: Symlinks pointing to color profiles
if [ -h "$PROFILE" ]; then
case "$(readlink -f $PROFILE)" in
case "$($READLINK -f $PROFILE)" in
$BYOBU_PREFIX/share/byobu/profiles/*)
# Set default colors
BG=W