Merge branch 'fix/explorer/os_version/legacy-macosx' into 'master'

explorer/os_version: Fix for legacy Mac OS X versions

See merge request ungleich-public/cdist!1018
This commit is contained in:
poljakowski 2021-08-05 10:25:17 +02:00
commit 39dcb41349
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ in
cat /etc/gentoo-release cat /etc/gentoo-release
;; ;;
macosx) macosx)
sw_vers -productVersion # NOTE: Legacy versions (< 10.3) do not support options
sw_vers | awk -F ':[ \t]+' '$1 == "ProductVersion" { print $2 }'
;; ;;
freebsd) freebsd)
# Apparently uname -r is not a reliable way to get the patch level. # Apparently uname -r is not a reliable way to get the patch level.