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:
poljakowski 2020-12-13 16:00:45 +01:00
commit ae747ac021

View file

@ -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
;;