diff --git a/scripts/get-distro.sh b/scripts/get-distro.sh index 92e44ff2f..513b78e28 100755 --- a/scripts/get-distro.sh +++ b/scripts/get-distro.sh @@ -15,6 +15,9 @@ case "$UNAME" in if grep -q -i 'rhel' /etc/*-release; then DIST='centos' VERSION_ID="$(rpm --eval '%{rhel}')" + elif grep -q -i 'centos' /etc/*-release; then + DIST='centos' + VERSION_ID="$(rpm --eval '%{centos_ver}')" else DIST="$(sed -n '/^ID=/p' /etc/os-release | sed -r 's/ID=(.*)/\1/g' | sed 's/"//g')" VERSION_ID="$(sed -n '/^VERSION_ID=/p' /etc/os-release | sed -r 's/VERSION_ID=(.*)/\1/g' | sed 's/"//g')"