* usr/lib/byobu/include/shutil:

- use /etc/lsb-release, if it exists
    fixes detection of Linux Mint
This commit is contained in:
Dustin Kirkland 2017-06-01 11:43:31 -05:00
commit 2f0bb33ff9
2 changed files with 5 additions and 1 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (5.118) unreleased; urgency=medium
* UNRELEASED
* usr/lib/byobu/include/shutil:
- use /etc/lsb-release, if it exists
fixes detection of Linux Mint
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 27 Apr 2017 16:26:18 -0500

View file

@ -316,6 +316,8 @@ get_distro() {
if [ -n "$DISTRO" ]; then
# user defined
true
elif [ -r "/etc/lsb-release" ]; then
distro=$(. /etc/lsb-release && echo "$NAME")
elif [ -r "/etc/os-release" ]; then
distro=$(. /etc/os-release && echo "$NAME")
elif [ -r "/etc/issue" ]; then