mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* 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:
parent
091b1c403a
commit
e7da7030cf
3 changed files with 6 additions and 0 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue