[explorer/os_version] Improve FreeBSD support.
It looks like uname -r is not the most reliable way to get the target patch level for the target system. For more information see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251743
This commit is contained in:
parent
a58f5ffa7f
commit
645734c629
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ case "$("$__explorer/os")" in
|
|||
macosx)
|
||||
sw_vers -productVersion
|
||||
;;
|
||||
freebsd)
|
||||
# Apparently uname -r is not a reliable way to get the patch level.
|
||||
# See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251743
|
||||
freebsd-version
|
||||
;;
|
||||
*bsd|solaris)
|
||||
uname -r
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue