From a569eb46b96fa30ee42dc6c019c209c28751cdb7 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 9 Apr 2013 12:09:22 -0500 Subject: [PATCH] * usr/lib/byobu/distro: - fix distro printing for RHEL --- debian/changelog | 2 ++ usr/lib/byobu/distro | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 20aeff1e..ce5a9ec9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 26 Mar 2013 11:24:38 -0500 diff --git a/usr/lib/byobu/distro b/usr/lib/byobu/distro index 1b31d22f..92e51ecb 100755 --- a/usr/lib/byobu/distro +++ b/usr/lib/byobu/distro @@ -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%% *}";