detect_linux.sh edited online with Bitbucket

This commit is contained in:
2019-07-31 21:43:44 +00:00
parent cfe27c497c
commit 40fb997f06

View File

@@ -63,7 +63,10 @@ elif [ -f /etc/debian_version ]; then
resetDistVer
fi
fi
elif [ -f /etc/os-release ]; then
fi
if [ "$DISTNAME" == "unknown" ]; then
if [ -f /etc/os-release ]; then
. /etc/os-release
if [ "$ID" == "arch" ]; then
DISTNAME=arch
@@ -86,8 +89,9 @@ elif [ -f /etc/os-release ]; then
else
resetDistVer
fi
else
else
resetDistVer
fi
fi
echo ${DISTNAME}${DISTVER}