Fix detection

This commit is contained in:
Scott E. Graves
2019-04-18 21:36:42 -05:00
parent 52c4130d35
commit 74c7490575

View File

@@ -2,20 +2,6 @@
DISTNAME=unknown
DISTVER=
if [ -f /etc/os-release ]; then
. /etc/os-release
if [ "$ID" == "arch" ]; then
DISTNAME=arch
elif [ "$ID" == "fedora" ]; then
if [ "$VERSION_ID" == "29" ]; then
DISTNAME=fedora
DISTVER=29
fi
fi
fi
if [ "DISTNAME" = "unknown" ]; then
if [ -f /etc/solus-release ]; then
DISTNAME=solus
elif [ -f /etc/lsb-release ]; then
@@ -41,6 +27,15 @@ if [ "DISTNAME" = "unknown" ]; then
elif [ -f /etc/debian_version ]; then
DISTNAME=debian
DISTVER=$(head -1 /etc/debian_version|awk -F. '{print $1}')
elif [ -f /etc/os-release ]; then
. /etc/os-release
if [ "$ID" == "arch" ]; then
DISTNAME=arch
elif [ "$ID" == "fedora" ]; then
if [ "$VERSION_ID" == "29" ]; then
DISTNAME=fedora
DISTVER=29
fi
fi
fi