* usr/lib/byobu/distro:

- fix distro printing for RHEL
This commit is contained in:
Dustin Kirkland 2013-04-09 12:09:22 -05:00
commit a569eb46b9
2 changed files with 6 additions and 1 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ byobu (5.36) unreleased; urgency=low
* usr/share/doc/byobu/help.tmux.txt:
- fix typos
* usr/lib/byobu/distro:
- fix distro printing for RHEL
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 26 Mar 2013 11:24:38 -0500

View file

@ -31,7 +31,7 @@ __distro() {
elif [ -r "/etc/issue" ]; then
# lsb_release is *really* slow; try to use /etc/issue first
local issue
read issue < /etc/issue
IFS="" read issue < /etc/issue
case "$issue" in
Ubuntu*)
DISTRO="Ubuntu";
@ -39,6 +39,9 @@ __distro() {
Debian*)
DISTRO="Debian"
;;
Red Hat Enterprise*)
DISTRO="RHEL"
;;
*)
# assume first field is what we want
DISTRO="${issue%% *}";