forked from ungleich-public/cdist
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)
|
macosx)
|
||||||
sw_vers -productVersion
|
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)
|
*bsd|solaris)
|
||||||
uname -r
|
uname -r
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue