Fix detection
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user