Properly detect Arch Linux when lsb-release is available

This commit is contained in:
Pedro Algarvio 2014-08-29 20:24:40 +01:00
parent fedaac365d
commit cd3a2f2bc9

View file

@ -702,6 +702,9 @@ __gather_linux_system_info() {
DISTRO_NAME="Oracle Linux"
elif [ "${DISTRO_NAME}" = "AmazonAMI" ]; then
DISTRO_NAME="Amazon Linux AMI"
elif [ "${DISTRO_NAME}" = "Arch" ]; then
DISTRO_NAME="Arch Linux"
return
fi
rv=$(lsb_release -sr)
[ "${rv}" != "" ] && DISTRO_VERSION=$(__parse_version_string "$rv")