Only read the FreeBSD major version
This commit is contained in:
parent
bb80559fb3
commit
35bd1c04db
6
ghcup
6
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 <version>", also works for BSD, etc.
|
||||
|
Loading…
Reference in New Issue
Block a user