mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/distro:
- fix distro printing for RHEL
This commit is contained in:
parent
7429b243ac
commit
a569eb46b9
2 changed files with 6 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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%% *}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue