fix: el8 dir not yet ready

This commit is contained in:
boypt
2024-02-27 10:22:36 +08:00
parent a145806035
commit 91f6f7d0ac

View File

@@ -40,8 +40,8 @@ GUESS_DIST_BY_GLIBC() {
# centos 7 uses glibc 2.17
[[ $glibcver -eq 217 ]] && echo 'el7' && return 0
# centos 8 uses glibc 2.28
[[ $glibcver -eq 228 ]] && echo 'el8' && return 0
# centos 8 uses glibc 2.28, not yet to be in a seprate dir yet
#[[ $glibcver -eq 228 ]] && echo 'el8' && return 0
# some centos-like dists ships higher version of glibc, fallback to el7
[[ $glibcver -gt 217 ]] && echo 'el7' && return 0