From 2f0bb33ff9f4cae0994368fa947dc1b5b8dbdb18 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 1 Jun 2017 11:43:31 -0500 Subject: [PATCH] * usr/lib/byobu/include/shutil: - use /etc/lsb-release, if it exists fixes detection of Linux Mint --- debian/changelog | 4 +++- usr/lib/byobu/include/shutil | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 03a4547c..73692718 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 27 Apr 2017 16:26:18 -0500 diff --git a/usr/lib/byobu/include/shutil b/usr/lib/byobu/include/shutil index edccc974..ddb87dea 100755 --- a/usr/lib/byobu/include/shutil +++ b/usr/lib/byobu/include/shutil @@ -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