diff --git a/include/osdetection b/include/osdetection index 164a4597..e7a14a3a 100644 --- a/include/osdetection +++ b/include/osdetection @@ -195,9 +195,9 @@ fi # Amazon - if [ -e "/etc/system-release" ]; then - FIND=$(grep "Amazon" /etc/system-release) - if [ ! "${FIND}" = "" ]; then + if [ -z "${LINUX_VERSION}" -a -e "/etc/system-release" ]; then + FIND=$(grep "^Amazon" /etc/system-release) + if [ -n "${FIND}" ]; then OS_REDHAT_OR_CLONE=1 OS_FULLNAME=$(grep "^Amazon" /etc/system-release) OS_VERSION=$(grep "^Amazon" /etc/system-release | awk '{ if ($4=="release") { print $5 } }')