From d048e5e616a3d50efbc1c41d2fdd926c08dd2ad2 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Wed, 23 Sep 2015 00:06:41 +0200 Subject: [PATCH] distro script: Only parse /etc/lsb-release if no known distribution is found --- scripts/distro | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/distro b/scripts/distro index ed28eb6f6..6655ad47a 100755 --- a/scripts/distro +++ b/scripts/distro @@ -45,9 +45,7 @@ elif [ "${OS}" = "Linux" ] ; then REV="" # Omit version since Arch Linux uses rolling releases elif [ -f /etc/UnitedLinux-release ] ; then DIST="${DIST}[`cat /etc/UnitedLinux-release | tr "\n" ' ' | sed s/VERSION.*//`]" - fi - - if [ -f /etc/lsb-release ] ; then + elif [ -f /etc/lsb-release ] ; then LSB_DIST="`cat /etc/lsb-release | grep DISTRIB_ID | cut -d "=" -f2`" LSB_REV="`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d "=" -f2`" if [ "$LSB_DIST" != "" ] ; then