* usr/lib/byobu/distro, usr/lib/byobu/release: LP: #1004722

- use sw_vers utility on Mac to determine distro and release
This commit is contained in:
Dustin Kirkland 2013-01-14 15:24:22 -06:00
commit e7da7030cf
3 changed files with 6 additions and 0 deletions

2
debian/changelog vendored
View file

@ -16,6 +16,8 @@ byobu (5.27) unreleased; urgency=low
bzr
* usr/bin/byobu-select-profile: LP: #946112
- fix byobu interactive color selection in tmux
* usr/lib/byobu/distro, usr/lib/byobu/release: LP: #1004722
- use sw_vers utility on Mac to determine distro and release
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 10 Jan 2013 16:36:23 -0600

View file

@ -58,6 +58,8 @@ __distro() {
DISTRO=$(lsb_release -s -i)
;;
esac
elif $BYOBU_TEST sw_vers >/dev/null 2>&1; then
DISTRO="$(sw_vers -productName)"
elif $BYOBU_TEST uname >/dev/null 2>&1; then
DISTRO="$(uname -s)"
else

View file

@ -43,6 +43,8 @@ __release() {
RELEASE="$ver"
;;
esac
elif $BYOBU_TEST sw_vers >/dev/null 2>&1; then
RELEASE="$(sw_vers -productVersion)"
fi
if [ -z "$RELEASE" ] && $BYOBU_TEST lsb_release >/dev/null 2>&1; then
# If lsb_release is available, use it