Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-10-26 13:19:01 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-26 13:19:01 +0300
commit3a69103a0e9ac2ecb6a49db69d3932c06b63a30d (patch)
treeb6b93d12579fee0a14a72e7b5d3893ff6db19dc8
parent9c6864589bfd1c711716cebd4ce49d6e14fa6d27 (diff)
Improve versions for macOS
-rw-r--r--include/osdetection9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/osdetection b/include/osdetection
index 317103ae..6a9fab7c 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -44,11 +44,12 @@
OS_NAME=$(/usr/bin/sw_vers -productName)
OS_VERSION=$(/usr/bin/sw_vers -productVersion)
OS_VERSION_NAME="unknown"
+ OS_FULLNAME="macOS (unknown version)"
case ${OS_VERSION} in
- 10.9) OS_FULLNAME="Mac OS X 10.9 (Mavericks)" ;;
- 10.10) OS_FULLNAME="Mac OS X 10.10 (Yosemite)" ;;
- 10.11) OS_FULLNAME="Mac OS X 10.11 (El Capitan)" ;;
- "10.12" | "10.12.[0-9]") OS_NAME="macOS"; OS_FULLNAME="macOS Sierra (${OS_VERSION})" ;;
+ 10.9 | 10.9.[0-9]*) OS_FULLNAME="Mac OS X 10.9 (Mavericks)" ;;
+ 10.10 | 10.10.[0-9]*) OS_FULLNAME="Mac OS X 10.10 (Yosemite)" ;;
+ 10.11 | 10.11.[0-9]*) OS_FULLNAME="Mac OS X 10.11 (El Capitan)" ;;
+ 10.12 | 10.12.[0-9]*) OS_NAME="macOS"; OS_FULLNAME="macOS Sierra (${OS_VERSION})" ;;
*) echo "Unknown macOS version. Do you know what version it is? Create an issue at ${PROGRAM_SOURCE}" ;;
esac
else