forked from ungleich-public/cdist
[explorer/os_version] Fix for legacy Mac OS X versions
This commit is contained in:
parent
10ca1c12fd
commit
2a0c073d40
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ case "$("$__explorer/os")" in
|
|||
cat /etc/gentoo-release
|
||||
;;
|
||||
macosx)
|
||||
sw_vers -productVersion
|
||||
# NOTE: Legacy versions (< 10.3) do not support options
|
||||
sw_vers | awk -F ':[ \t]+' '$1 == "ProductVersion" { print $2 }'
|
||||
;;
|
||||
freebsd)
|
||||
# Apparently uname -r is not a reliable way to get the patch level.
|
||||
|
|
Loading…
Reference in a new issue