mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-18 15:11:12 +02:00
Fix Fedora version check when VERSION_ID is decimal (#2549)
This fixes RHEL builds where VERSION_ID=7.9
This commit is contained in:
commit
205bea6a9b
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ is_fedora() {
|
|||
# shellcheck disable=SC1091
|
||||
source /etc/os-release
|
||||
# Treat Aurora, Bazzite, BlueFin, uCore, and other Fedora variants as "fedora".
|
||||
if [[ "${ID_LIKE:-$ID}" != "fedora" || ( $# -gt 0 && "$VERSION_ID" -lt "$1") ]]; then
|
||||
if [[ "${ID_LIKE:-$ID}" != "fedora" || ( $# -gt 0 && "${VERSION_ID%%.*}" -lt "$1") ]]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue