diff --git a/ghcup b/ghcup index 9652d6a..ef7e3e6 100755 --- a/ghcup +++ b/ghcup @@ -649,9 +649,9 @@ get_distro_ver() { printf "%s" "$(uname -v)" ;; FreeBSD) - # we only care about the numeric version part left of - # the '-' in "11.2-RELEASE". - printf "%s" "$(uname -r | cut -d - -f 1)" + # we only care about the major numeric version part left of + # the '.' in "11.2-RELEASE". + printf "%s" "$(uname -r | cut -d . -f 1)" ;; *) # Fall back to uname, e.g. "Linux ", also works for BSD, etc.