Merge branch 'os_version-freebsd' into 'master'
[explorer/os_version] Improve FreeBSD support. See merge request ungleich-public/cdist!965
This commit is contained in:
commit
ae747ac021
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