diff --git a/bin/ruby-build b/bin/ruby-build index 7f8ed4cf45..92bcc5e8be 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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 }